What should be in .cshrc vs .login

Robert Perlberg perl at step.UUCP
Wed Oct 31 04:09:36 AEST 1990


The way I've dealt with the problem is to make the setting of all env
variables conditional.  I have created an env variable called ENVINIT
whose existence indicates that the env variables have already been
created.  I use it like this:

excerpt from .cshrc:

source .envinit

excerpt from .envinit:

if($?ENVINIT != 0) exit
... various setenv's ...
setenv ENVINIT DONE

Robert Perlberg
Dean Witter Reynolds Inc., New York
{murphy | philabs | chuo}!step!perl
	-- "I am not a language ... I am a free man!"



More information about the Comp.unix.shell mailing list