home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!mimsy!prometheus!media!irscscm!nearside!shwake
- From: shwake@nearside.UUCP (Raymond Shwake)
- Newsgroups: comp.unix.wizards
- Subject: Re: O Wizards, is there vi w/out shell?
- Message-ID: <67@nearside.UUCP>
- Date: 16 Dec 92 13:57:56 GMT
- References: <Bz08qF.BHE@cs.uiuc.edu> <Bz0x63.Fqq@ucunix.san.uc.edu> <1992Dec11.180118.1144@leland.Stanford.EDU>
- Organization: A/C International
- Lines: 18
-
- dkeisen@leland.Stanford.EDU (Dave Eisen) writes:
-
- >>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.
-
- I like to set SHELL to /bin/echo; the only point is to invoke
- something innocuous.
-
- >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.
-
- Quite true. What I've done is binary patch the "set" string to
- include an embedded space (like "s x"). Seems to work.
- --
-
- uunet!media!ka3ovk!nearside!shwake shwake@rsxtech
-