Path: utzoo!utgpu!watmath!clyde!ima!cfisun!lakart!dg From: dg@lakart.UUCP (David Goodenough) Newsgroups: comp.unix.questions Subject: Re: Identifying .login Shells Message-ID: <420@lakart.UUCP> Date: 12 Feb 89 21:03:27 GMT References: <309@wubios.wustl.edu> Organization: Lakart Corporation, Newton, MA Lines: 24 From article <309@wubios.wustl.edu>, by david@wubios.wustl.edu (David J. Camp): > Does anyone know a way to determine whether you are in the login shell > from .cshrc? -David- In .cshrc say: set login=0 and in .login say: set login=1 Now if ($login == 1) you have a login shell. This relies on the fact that .cshrc is executed by every csh, but .login is only execute by your login csh, AND after .cshrc has done it's bit. -- dg@lakart.UUCP - David Goodenough +---+ IHS | +-+-+ ....... !harvard!xait!lakart!dg +-+-+ | AKA: dg%lakart.uucp@xait.xerox.com +---+