home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!spool.mu.edu!umn.edu!noc.msc.net!news.stolaf.edu!news.stolaf.edu!guenther
- From: guenther@StOlaf.edu (Philip Guenther)
- Subject: Re: Help: How to exit from two shells?
- In-Reply-To: zhong@cs.UAlberta.CA's message of Tue, 15 Sep 1992 17:53:30 GMT
- Message-ID: <GUENTHER.92Sep15150918@snookles.StOlaf.edu>
- Sender: news@news.stolaf.edu
- Organization: St. Olaf College, Northfield, MN USA
- References: <1992Sep15.175330.25203@cs.UAlberta.CA>
- Date: 15 Sep 92 15:09:18
- Lines: 36
-
-
- In article <1992Sep15.175330.25203@cs.UAlberta.CA> 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 having csh exec tcsh instead of just running it? Then tcsh
- would (sorta) be your login shell, and there would be no csh to worry
- about. :-) You may also want to make a symlink to tcsh that starts
- with a dash (i.e. "ln -s bin/tcsh bin/-tcsh") and have csh exec that
- (i.e. "exec -tcsh"). Then tcsh will think it is a login shell because
- argv[0] starts with a dash. Yes, this is a rather ugly kludge, but it
- works...
-
- thanks in advance!
-
-
- --
- > -----------------------------------------------------------------------------
- > | Li, John | 492-5094 (office) | I haven't lost my mind, |
- > | zhong@cs.ualberta.ca | 492-2821 (lab) | I know exactly where I left it|
- > -----------------------------------------------------------------------------
-
- Philip Guenther
- --
- guenther@stolaf.edu (Philip Guenther) | The ACC might agree with me,
- Student Sys Prog, Academic Computing Center | but with that bunch, (and me)
- St Olaf College, Northfield, MN 55057-1001 | you never know... :-) :-| :-(
- "Life makes sense? LIFE MAKES SENSE!!? Where do people get these ideas?"-me
-