Xref: utzoo comp.unix.questions:27233 comp.unix.misc:644 Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!emory!wa4mei!bcs800!jeffr From: jeffr@bcs800.UUCP (Jeff Riegel) Newsgroups: comp.unix.questions,comp.unix.misc Subject: Re: vi can't handle ":! cmd %" Keywords: vi Message-ID: <1128@bcs800.UUCP> Date: 29 Nov 90 15:21:13 GMT References: <1990Nov28.140637.20499@cbnewsj.att.com> Followup-To: comp.unix.questions Distribution: na Organization: Brock Control Systems, Atlanta, Georgia Lines: 29 In <1990Nov28.140637.20499@cbnewsj.att.com> btwomey@cbnewsj.att.com (william.tw0mey) writes: >Re: Message-ID: <1990Nov27.210425.25747@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!