Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!mit-eddie!bloom-beacon!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.shell Subject: Re: What should be in .cshrc vs .login Message-ID: <1990Oct23.045911.472@athena.mit.edu> Date: 23 Oct 90 04:59:11 GMT References: <1294@tardis.Tymnet.COM> <1300@tardis.Tymnet.COM> <1990Oct23.011502.21167@mp.cs.niu.edu> Sender: daemon@athena.mit.edu (Mr Background) Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Organization: Massachusetts Institute of Technology Lines: 16 The default Athena .cshrc file checks for the existence of the environment variable ENV_SET. If it exists, then the environment is assumed to have been initialized properly, and no path setting etc. is done. If it doesn't exist, then the .cshrc does the necessary environment initialization. Our users log into X displays the vast majority of the time, and our X login setup doesn't even *look at* .login, so putting the initialization stuff there isn't an option. Putting it in .cshrc, however, makes it work both for X logins and for dialup logins (which do use .login, obviously :-). -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710