vi can't handle ":! cmd %"

Jeff Riegel jeffr at bcs800.UUCP
Fri Nov 30 02:21:13 AEST 1990


In <1990Nov28.140637.20499 at cbnewsj.att.com> btwomey at cbnewsj.att.com (william.tw0mey) writes:

>Re: Message-ID: <1990Nov27.210425.25747 at cbnewsj.att.com>

>For those of you that have replied to me, thanks.
>Let me clarify my post, I am editing an existing file.

>From within vi the following can happen
>:!echo % | od -c
>0000000   f   o   o   .   c  \n
>	346 357 357 256 343 012

>Does ksh NOT have a convention that vi and other shells use?

>Thanks,
>Bill Twomey, cbnewsj!btwomey attmail!btwomey journey!btwomey

I have had problems using ksh with the '%', the workaroud is to put the
following line in your .exrc file:

set sh=/bin/sh

This sets you comand shell back to bsh which seems to process the '%'
properly....
-- 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Jeff Riegel                 |     uucp: ...!gatech!emory!bcs800!jeffr
 Technical Support           | 	   delphi: j2
 tel: +800 444 3070          |     A process is a terrible thing to waste!



More information about the Comp.unix.questions mailing list