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