Re: avoiding .scottyrc in scotty-2.1.x

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Thu, 26 Sep 1996 17:10:54 +0200

Robert Premuz <rpremuz@srce.hr> said:

Robert> The obsoleted scotty-2.0.x had the -n option for telling
Robert> scotty not to source ~/.scottyrc. On the other hand,
Robert> scotty-2.1.x always source ~/.scottyrc and ~/.tclshrc.

Thats not 100 % correct. It only sources ~/.tclshrc if it is invoked
interactively.

Robert> Now, I'd like to know is there a way to avoid this feature of
Robert> the new scotty, i.e. tnm.

For what reason? The Tnm package sources ~/.scottyrc once it is
loaded, regardless if it is running interactively or not. This allows
to keep personal definitions into this startup file (e.g. snmp alias
definitions) that are always available. If you want to do things that
are only useful for an interactive session, put them into ~/.tclshrc
or check the global tcl_interactive variable.

Robert> BTW, the $tnm(library)/library/README file in scotty-2.1.4
Robert> says nothing about the obsolete.tcl file. How come? (You know,
Robert> I'm a bit old-fashioned :-)

Well, it contains procedure definitions that are likely to be removed
in future versions. So I thought it is not worth mentioning it. I now
added a note that it is there but that noone should use rely on it.

Juergen

--
Juergen Schoenwaelder schoenw@cs.utwente.nl http://www.cs.utwente.nl/~schoenw
Computer Science Department, University of Twente,   (Fax: +31-53-489-3247)
P.O. Box 217, NL-7500 AE Enschede, The Netherlands.  (Tel. +31-53-489-3678)