Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: completion in quotes - " vs ' - no suffix added
- X-seq: zsh-workers 17137
- From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "'Sven Wischnowsky'" <wischnow@xxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: RE: completion in quotes - " vs ' - no suffix added
- Date: Mon, 13 May 2002 14:14:19 +0400
- Importance: Normal
- In-reply-to: <15583.34740.981994.404489@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
>
> Bart Schaefer wrote:
>
> > ...
> >
> > Sven, what you're missing is that although the result is correct
after
> > you execute the command, the completion is not correct while the
command
> > line is being built. That is, if the completion system is going to
turn
> > the file name `a\ b' into the string `"a\\ b"' when it inserts it on
the
> > line, then `compset -q' should also UNDO the backslash-doubling
again
> > when the quote character is a double-quote, so that it's possible to
> > correctly complete the file path on the second and subsequent calls
to
> > the completion system.
>
> (Sorry for the delay, I was away on Thursday and Friday.)
>
> (Also sorry for being so bone-headed. Ahem.)
>
> Whew, this was pretty complicated, we have to special-case this stuff.
> Because a quoting a single quote inserts more single quotes. This
> wasn't even handled correctly (in the case that there was one quoted
> single quote in the string) by get_comp_string().
>
> The patch below should fix it. At least it does for the pretty
> complicated cases I tried.
>
I do not see any difference with this patch. As before, listing
pathnames with spaces in single quotes correctly adds slash to
directories and in double quotes adds nothing.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author