Login shell?
M. A. Sridhar
sridhar at usceast.UUCP
Fri Dec 8 06:23:38 AEST 1989
Is there any way to determine, within a shell script (csh), whether the script
is being executed by the login shell? I know that one can use the fact that
$prompt is set to detect an interactive shell, but I don't know how to test
whether it's the login shell.
Thanks in advance.
- Sridhar
--
M. A. Sridhar |
Department of Computer Science | ncr-sd!ncrcae ! usceast!sridhar (USENET)
University of South Carolina | sridhar at cs.scarolina.edu (CSNET)
Columbia, SC 29208 | (803) 777-2427 (Ma Bell)
More information about the Comp.unix.questions
mailing list