Here's how to stop shell escapes from vi

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Mon Sep 24 06:07:38 AEST 1990


In article <924 at mwtech.UUCP> martin at mwtech.UUCP (Martin Weitzel) writes:
> In article <11285:Sep2022:15:2090 at kramden.acf.nyu.edu> brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:
> > In article <1990Sep20.153105.28394 at naitc.naitc.com> karl at bbs.naitc.com (Karl Denninger) writes:
     [ that as long as : is available, you can get a shell ]
> > >Without source code to "vi" there is NO WAY to prevent this.  Believe me.  
> > How fatalistic.
    [ trash the colon with pty -0 tr \: \? | pty vi ]
  [ questions the solution ]

I did mention that you have to set up appropriate macros as well, and
turn off keyboard interrupts. The only thing that you can't completely
control from within vi is the mapping of the colon---and my solution
handles that.

---Dan



More information about the Comp.unix.sysv386 mailing list