home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / wizards / 5263 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.1 KB  |  31 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: <1992Dec17.193838.15886@mp.cs.niu.edu>
  6. Organization: Northern Illinois University
  7. References: <Bz0x63.Fqq@ucunix.san.uc.edu> <1992Dec11.180118.1144@leland.Stanford.EDU> <67@nearside.UUCP>
  8. Date: Thu, 17 Dec 1992 19:38:38 GMT
  9. Lines: 20
  10.  
  11. In article <67@nearside.UUCP> shwake@nearside.UUCP (Raymond Shwake) writes:
  12. >dkeisen@leland.Stanford.EDU (Dave Eisen) writes:
  13. >
  14. >    I like to set SHELL to /bin/echo; the only point is to invoke
  15. >    something innocuous.
  16. >
  17. >>This doesn't do any good. The user can still type :set shell=/bin/csh
  18. >>and give himself a shell whenver he wants. The SHELL environment
  19. >>vaiable is only used to initialize the internal vi shell variable.
  20. >
  21. >    Quite true. What I've done is binary patch the "set" string to
  22. >    include an embedded space (like "s x"). Seems to work.
  23.  
  24. Try doing
  25.  
  26.     :r !command
  27.  
  28. chances are you find that still uses /bin/sh, regardless of your SHELL
  29. environment.
  30.  
  31.