Xref: utzoo alt.security:1668 comp.unix.sysv386:1083 Path: utzoo!attcan!uunet!lll-winken!uwm.edu!uwvax!persoft!gorgon!dag From: dag@gorgon.uucp (Daniel A. Glasser) Newsgroups: alt.security,comp.unix.sysv386 Subject: Re: Here's how to stop shell escapes from vi Message-ID: <1990Oct09.010323.22960@gorgon.uucp> Date: 9 Oct 90 01:03:23 GMT References: <1990Sep28.072202.1184@brolga.cc.uq.oz.au> <1990Sep30.174404.6132@gorgon.uucp> <1990Oct1.190141.29659@athena.mit.edu> Organization: Perseus Reductions (Medusa Division) Lines: 39 In article <1990Oct1.190141.29659@athena.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) writes: > As someone else has already pointed out, it is possible to set the SHELL >environment variable from inside vi, using a vi command. > >\begin{soapbox} > Read the net before you post. RTFM before you post. >\end{soapbox} **** FLAME ON **** Okay, I just finished reading TFM. The only version of vi docs that I have on hand are from a SYS-III implementation. They make no mention of how to set an environment variable from within vi. I've checked the man page under the version of SYS-V that I am using (ISC V2.2), and that also gives no clue of how to go about changing an environment variable from within vi. I'll admit that I've hated vi from the day I first set eyes on it oh so many years ago, thus have never learned the backdoors, etc., that lurk within vi. I had read the entire thread up to that point as it had arrived at my site. I've read much of the thread that has followed. I still have not seen this. DO NOT ASSUME THAT ALL MESSAGES FROM ALL PLACES GET TO A SITE IN THE SAME ORDER AS THEY DO TO YOUR SITE. OR EVEN THAT THEY GET THERE AT ALL. In all likelyhood, I've been posting to the net longer than you've had access to any kind of unix system, possibly computer. I've been a Unix user from very early 7th edition days. I have written several programs like the one I've described under RSTS/E, VMS, Unix v7, SysIII, and System V. I've never had any problems with any of them. It may be that vi has a back door that I don't know about. That is no reason to assume that tone. I may sound like a complete jerk, but I don't like being talked down to. **** FLAME OFF **** -- Daniel A. Glasser One of those things that goes dag%gorgon@persoft.com "BUMP! (ouch!)" in the night.