home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / wizards / 5261 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.1 KB

  1. Path: sparky!uunet!dtix!mimsy!prometheus!media!irscscm!nearside!shwake
  2. From: shwake@nearside.UUCP (Raymond Shwake)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: O Wizards, is there vi w/out shell?
  5. Message-ID: <67@nearside.UUCP>
  6. Date: 16 Dec 92 13:57:56 GMT
  7. References: <Bz08qF.BHE@cs.uiuc.edu> <Bz0x63.Fqq@ucunix.san.uc.edu> <1992Dec11.180118.1144@leland.Stanford.EDU>
  8. Organization: A/C International
  9. Lines: 18
  10.  
  11. dkeisen@leland.Stanford.EDU (Dave Eisen) writes:
  12.  
  13. >>How about setting the SHELL environment variable to something like
  14. >>/bin/false.  Don't know about other Unixs, but this appears to work
  15. >>for both vi and gnuemacs on the Ultrix system that I posted this from.
  16.  
  17.     I like to set SHELL to /bin/echo; the only point is to invoke
  18.     something innocuous.
  19.  
  20. >This doesn't do any good. The user can still type :set shell=/bin/csh
  21. >and give himself a shell whenver he wants. The SHELL environment
  22. >vaiable is only used to initialize the internal vi shell variable.
  23.  
  24.     Quite true. What I've done is binary patch the "set" string to
  25.     include an embedded space (like "s x"). Seems to work.
  26. -- 
  27.  
  28. uunet!media!ka3ovk!nearside!shwake            shwake@rsxtech
  29.