Subject: Re: ksh: escape spaces when expanding
To: None <woods@weird.com>
From: Jaromir Dolecek <dolecek@ics.muni.cz>
List: tech-userlevel
Date: 09/25/1999 15:02:04
It's done for vi mode only at the moment :) I'll make it work for both
modes shortly.
Jaromir
Greg A. Woods wrote:
> [ On Wednesday, September 22, 1999 at 18:51:27 (+0200), Jaromir Dolecek wrote: ]
> > Subject: Re: ksh: escape spaces when expanding
> >
> > so I added escaping of (hopefully) all shell special chars. The only
> > change is in the vi.c:complete_word(). The " & ' quoting is still
> > not handled at all.
>
> I just tried your patch and unfortunately it doesn't seem to do anything
> at all!
>
> My shell is in 'gmacs' mode, and I did the following:
>
> 21:42 [5] $ ls -l foob*
> -rw-r--r-- 1 woods sunstaff 0 Sep 24 21:34 foobar done.txt
> I type->>> 21:43 [6] $ ls -l foob<ESC><ESC>
> result->>> 21:43 [6] $ ls -l foobar done.txt
>
> I.e. no escaping is happening upon filename completion for me. I've
> been really wanting this feature for a long time so I can finally tell
> my bash-using friends that their shell is truly 100% deprecated by a
> much better program!
>
> I don't see any thing really wrong in your changes, but I've not looked
> further in the code yet to see what's really going on....
>
> --
> Greg A. Woods
>
> +1 416 218-0098 VE3TCP <gwoods@acm.org> <robohack!woods>
> Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>
>
--
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.ics.muni.cz/~dolecek/
"The only way how to get rid temptation is to yield to it." -- Oscar Wilde