home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10418 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.1 KB  |  33 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!ncar!csn!boulder!ucsu!tramp.Colorado.EDU!brandy
  3. From: brandy@tramp.Colorado.EDU (BRANDAUER CARL M)
  4. Subject: Re: how come : ! out of vi always uses sh instead of $SHELL ???
  5. Message-ID: <1992Aug27.030505.26800@ucsu.Colorado.EDU>
  6. Sender: news@ucsu.Colorado.EDU (USENET News System)
  7. Nntp-Posting-Host: tramp.colorado.edu
  8. Organization: University of Colorado, Boulder
  9. References: <fish.714853851@news2.gsfc.nasa.gov>
  10. Date: Thu, 27 Aug 1992 03:05:05 GMT
  11. Lines: 20
  12.  
  13. fish@daacdev1.stx.com writes:
  14.  
  15. >whenever i :! out of vi it uses /bin/sh instead of $SHELL
  16. >so all of my aliases are lost, etc and makes it very limited
  17.  
  18. Vi uses the variable 'shell' which must be set explicitly in either
  19. your EXINIT variable or in .exrc.  You can verify your efforts with
  20.  
  21.     :set shell
  22.  
  23. after starting vi again.
  24.  
  25. NOTE: Some versions of vi, including the one I am using now, let the
  26. user modify the variable with
  27.  
  28.     :set shell=whatever
  29.  
  30. As always, no spaces around the =.
  31.  
  32. Good luck and cheers - Carl
  33.