Here's how to stop shell escapes from vi

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Tue Sep 25 00:36:03 AEST 1990


In article <1990Sep24.040745.10454 at chinet.chi.il.us> les at chinet.chi.il.us (Leslie Mikesell) writes:
> In article <27387:Sep2320:07:3890 at kramden.acf.nyu.edu> brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:
> >    [ trash the colon with pty -0 tr \: \? | pty vi ]
> >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.
> Umm... Well, there's 'Q' to go to ex mode and stay there while you
> type sh,
  [ blah blah blah ]

Read my lips: ``The only thing that you can't completely control from
within vi is the mapping of the colon---and my solution handles that.''
You can map Q. You can map @. You can even map !---I didn't realize this
at first. You can map every single f-ing character the user can type.
Except the colon.

> Leaves something to 
> be desired as a form of security....

RTFABYFU.

---Dan



More information about the Comp.unix.sysv386 mailing list