Path: utzoo!utgpu!attcan!uunet!husc6!rutgers!elbereth.rutgers.edu!ron.rutgers.edu!ron From: ron@ron.rutgers.edu (Ron Natalie) Newsgroups: comp.unix.questions Subject: Re: Login shell? Message-ID: Date: 23 Oct 88 13:32:40 GMT References: <3ed799bc.103e8@hi-csc.UUCP> <13851@mimsy.UUCP> <511@imec.UUCP> <1529@solo9.cs.vu.nl> <314@uplog.se> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 5 > Just take the output from ps -x (or -f if on system V) grep for pid $$ > and check if the command name begins with a '-'. If that is the case the > shell is the login shell. How about just comparing $0.