Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!srcsip!ctrsol!emory!hubcap!ncrcae!usceast!sridhar From: sridhar@usceast.UUCP (M. A. Sridhar) Newsgroups: comp.unix.questions Subject: Login shell? Message-ID: <2975@usceast.UUCP> Date: 7 Dec 89 19:23:38 GMT Reply-To: sridhar@usceast.uucp.UUCP (M. A. Sridhar) Distribution: usa Organization: University of South Carolina, Columbia Lines: 13 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@cs.scarolina.edu (CSNET) Columbia, SC 29208 | (803) 777-2427 (Ma Bell)