How to prevent VI from getting a shell?

Eamonn McManus em at dce.ie
Mon Oct 1 21:06:40 AEST 1990


In article <7007 at ozdaltx.UUCP> toma at 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'.



More information about the Comp.unix.questions mailing list