Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bfmny0!tneff From: tneff@bfmny0.BFM.COM (Tom Neff) Newsgroups: comp.sys.att Subject: Re: bang problems in vi Message-ID: <15689@bfmny0.BFM.COM> Date: 20 Jul 90 07:26:43 GMT References: <37112@shemp.CS.UCLA.EDU> <1990Jul20.032240.29834@cbnewsj.att.com> Reply-To: tneff@bfmny0.BFM.COM (Tom Neff) Lines: 26 In article <1990Jul20.032240.29834@cbnewsj.att.com> avr@cbnewsj.att.com (adam.v.reed) writes: >In article <37112@shemp.CS.UCLA.EDU>, kirkaas@oahu.cs.ucla.edu (paul kirkaas) writes: >> stty: : Not a typewriter > >Most likely, you are using ksh and do an stty, directly or indirectly, >in your $ENV, which is carried out whenever !! invokes ksh. To fix, >use something like the following in your $ENV: > >case $- in *s* | *i* ) > # your interactive stuff, stty etc., goes here >;; >esac > Or you can employ my favorite bit of horrendousness in your .profile: export Envfile=$HOME/.env export ENV='${Envfile[(_$-=1)+(_=0)-(_$-!=_${-%%*i*})]}' (I have been accused of using Korn shell as an apl interpreter :-) ) -- When considering "victim's rights," remember || vv Tom Neff that an innocent defendant is also a victim. ^^ || tneff@bfmny0.BFM.COM