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

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!noc.msc.net!news.stolaf.edu!news.stolaf.edu!guenther
  3. From: guenther@StOlaf.edu (Philip Guenther)
  4. Subject: Re: Help: How to exit from two shells?
  5. In-Reply-To: zhong@cs.UAlberta.CA's message of Tue, 15 Sep 1992 17:53:30 GMT
  6. Message-ID: <GUENTHER.92Sep15150918@snookles.StOlaf.edu>
  7. Sender: news@news.stolaf.edu
  8. Organization: St. Olaf College, Northfield, MN USA
  9. References: <1992Sep15.175330.25203@cs.UAlberta.CA>
  10. Date: 15 Sep 92 15:09:18
  11. Lines: 36
  12.  
  13.  
  14. In article <1992Sep15.175330.25203@cs.UAlberta.CA> zhong@cs.UAlberta.CA (John (Zhong)   Li) writes:
  15.  
  16.    Since some machines cannot support 'tcsh' shell I have to 
  17.    set up my default shell into 'csh'. But I like to use 'tcsh'
  18.    shell. After login, if possible, my '.login' will set 'tcsh'
  19.    automatically. However, since this kind of setting made 
  20.    'tcsh' is not the login shell it is annoying to exit. Every
  21.    time when I logout I have to type "exit", then "logout" or
  22.    "exit". Can anybody tell me a method to jsut type once by
  23.    making either a script or an alias, then I can directly 
  24.    exit from both 'tcsh' and 'csh' shells?
  25.  
  26. How about having csh exec tcsh instead of just running it?  Then tcsh
  27. would (sorta) be your login shell, and there would be no csh to worry
  28. about. :-)  You may also want to make a symlink to tcsh that starts
  29. with a dash (i.e. "ln -s bin/tcsh bin/-tcsh") and have csh exec that
  30. (i.e. "exec -tcsh").  Then tcsh will think it is a login shell because
  31. argv[0] starts with a dash.  Yes, this is a rather ugly kludge, but it
  32. works...
  33.  
  34.    thanks in advance!
  35.  
  36.  
  37.    --
  38. > -----------------------------------------------------------------------------
  39. > | Li, John              | 492-5094 (office) | I haven't lost my mind,       |
  40. > | zhong@cs.ualberta.ca  | 492-2821 (lab)    | I know exactly where I left it|
  41. > -----------------------------------------------------------------------------
  42.  
  43. Philip Guenther
  44. --
  45. guenther@stolaf.edu (Philip Guenther)       | The ACC might agree with me,
  46. Student Sys Prog, Academic Computing Center | but with that bunch, (and me)
  47. St Olaf College, Northfield, MN 55057-1001  | you never know... :-) :-| :-(
  48. "Life makes sense?  LIFE MAKES SENSE!!?  Where do people get these ideas?"-me
  49.