home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!sun-barr!ames!elroy.jpl.nasa.gov!sdd.hp.com!wupost!csus.edu!netcom.com!messina
- From: messina@netcom.com (Tony Porczyk)
- Subject: Re: Help: How to exit from two shells?
- Message-ID: <p#1nfvd.messina@netcom.com>
- Date: Wed, 16 Sep 92 03:52:15 GMT
- Organization: Messina Software
- References: <1992Sep15.175330.25203@cs.UAlberta.CA>
- Lines: 24
-
- zhong@cs.UAlberta.CA (John (Zhong) Li) writes:
-
- >Since some machines cannot support 'tcsh' shell I have to
- >set up my default shell into 'csh'. But I like to use 'tcsh'
- >shell. After login, if possible, my '.login' will set 'tcsh'
- >automatically. However, since this kind of setting made
- >'tcsh' is not the login shell it is annoying to exit. Every
- >time when I logout I have to type "exit", then "logout" or
- >"exit". Can anybody tell me a method to jsut type once by
- >making either a script or an alias, then I can directly
- >exit from both 'tcsh' and 'csh' shells?
-
- How about making your .login file look like this:
-
- #
- exec tcsh
-
-
- and have all the other stuff in .cshrc. Then make an alias
- alias logout exit
- and when you type "logout" you will be out all the way just as if you
- were using csh.
-
- t.
-