home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / shell / 3964 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.2 KB  |  35 lines

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