how can .cshrc know if session is a login?
Vick Khera
khera at juliet.cs.duke.edu
Sun May 21 01:24:03 AEST 1989
In article <434ccc08.bea3 at mach1.engin.umich.edu> brian at caen.engin.umich.edu (Brian Holtz) writes:
>Howw can .cshrc know if a session is a login session?
A simple way I do this is to test for the existence of an environment
variable that gets set in .login such as NAME. if it exists, then it is
most likely a sub-shell, otherwise, .login has not been executed yet, so it
should be a login shell. This has worked for me so far under SunOS 3.x and
4.0.
vick.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
ARPA: khera at cs.duke.edu Department of Computer Science
CSNET: khera at duke Duke University
UUCP: {mcnc,decvax}!duke!khera Durham, NC 27706
More information about the Comp.unix.questions
mailing list