Path: utzoo!attcan!uunet!mcsun!ukc!tcdcs!dce.ie!em From: em@dce.ie (Eamonn McManus) Newsgroups: comp.unix.questions Subject: Re: How to prevent VI from getting a shell? Message-ID: Date: 1 Oct 90 11:06:40 GMT References: <570@DIALix.UUCP> <1990Sep17.210110.26060@robobar.co.uk> <81@raysnec.UUCP> <7007@ozdaltx.UUCP> Organization: Datacode Communications Ltd, Dublin, Ireland Lines: 7 In article <7007@ozdaltx.UUCP> toma@ozdaltx.UUCP (Tom Armistead) writes: >Here is a real small C program that will batch the /usr/bin/vi, creating >an output file ./vi.new that will not have the ':set shell' command. >What it does is look for 'shell' and replace it with 5 spaces. So, >':set shell' gives an error... Vi also allows `:set sh' as an abbreviation for `:set shell'.