Path: utzoo!attcan!uunet!steinmetz!vdsvax!barnett From: barnett@vdsvax.steinmetz.ge.com (Bruce G. Barnett) Newsgroups: comp.unix.questions Subject: Re: A csh question ... Keywords: csh question .login .cshrc Message-ID: <4424@vdsvax.steinmetz.ge.com> Date: 21 May 88 10:33:45 GMT References: <636@fxgrp.UUCP> Reply-To: barnett@vdsvax.steinmetz.ge.com (Bruce G. Barnett) Organization: General Electric CRD, Schenectady, NY Lines: 18 In article <636@fxgrp.UUCP> ljz%fx.com@ames.arc.nasa.gov (Lloyd Zusman) writes: |Can anyone explain why .login gets sourced *after* .cshrc? Probably because it makes sense. How else to you specify a command to execute automatically when you log in that changes your environment? Examples: emacs, X windows, suntools, screen-based applications, etc. I usually test for the value of prompt, user, and/or term in my .cshrc file. This way I can distinguish between a script, rcp/rsh, rlogin or login. This has always been sufficient for me. What are you doing that requires the opposite? (You can always do a 'source .my-login' in your .login file). -- Bruce G. Barnett uunet!steinmetz!barnett