home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / wizards / 5196 < prev    next >
Encoding:
Text File  |  1992-12-11  |  1.4 KB  |  30 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!mp.cs.niu.edu!rickert
  3. From: rickert@mp.cs.niu.edu (Neil Rickert)
  4. Subject: Re: O Wizards, is there vi w/out shell?
  5. Message-ID: <1992Dec11.201528.23902@mp.cs.niu.edu>
  6. Organization: Northern Illinois University
  7. References: <Bz08qF.BHE@cs.uiuc.edu> <Bz0x63.Fqq@ucunix.san.uc.edu> <1992Dec11.180118.1144@leland.Stanford.EDU>
  8. Date: Fri, 11 Dec 1992 20:15:28 GMT
  9. Lines: 19
  10.  
  11. In article <1992Dec11.180118.1144@leland.Stanford.EDU> dkeisen@leland.Stanford.EDU (Dave Eisen) writes:
  12. >>>Well, basically, what I'm looking for is a vi text editor, or emacs
  13. >>>acting like vi, for that matter, that will NOT allow shell commands, as
  14. >
  15. >>How about setting the SHELL environment variable to something like
  16. >>/bin/false.  Don't know about other Unixs, but this appears to work
  17. >>for both vi and gnuemacs on the Ultrix system that I posted this from.
  18. >
  19. >This doesn't do any good. The user can still type :set shell=/bin/csh
  20. >and give himself a shell whenver he wants. The SHELL environment
  21. >vaiable is only used to initialize the internal vi shell variable.
  22.  
  23. It is worse than that.  Disallowing ':set shell= ..' does not help.  On
  24. the version of 'vi' that I use, I can type
  25.     :r !command
  26. to read the output of command into the file.  In this case 'vi' uses
  27. /bin/sh regardless of how $SHELL is defined.
  28.  
  29.  
  30.