Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion in quotes - " vs ' - no suffix added
- X-seq: zsh-workers 17143
- From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: completion in quotes - " vs ' - no suffix added
- Date: 13 May 2002 22:04:43 +0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <1020513173320.ZM12360@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <15576.54689.459113.686818@xxxxxxxxxxxxxxxxxx> <6134254DE87BD411908B00A0C99B044F02E89A73@xxxxxxxxxxxxxxxxxxxxxxx> <15577.7296.682622.411849@xxxxxxxxxxxxxxxxxx> <1020508153855.ZM7837@xxxxxxxxxxxxxxxxxxxxxxx> <15583.34740.981994.404489@xxxxxxxxxxxxxxxxxx> <6134254DE87BD411908B00A0C99B044F02E89A8C@xxxxxxxxxxxxxxxxxxxxxxx> <1020513173320.ZM12360@xxxxxxxxxxxxxxxxxxxxxxx>
В Пнд, 13.05.2002, в 21:33, Bart Schaefer написал:
>
> On May 13, 2:14pm, Borsenkow Andrej wrote:
> }
> } 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.
>
> I see slashes getting added to directories in double quotes:
>
> schaefer<505> ls
> a\ b a\ d/ don't stop/ rmthat/
> schaefer<506> ls "a<TAB><TAB>
> schaefer<506> ls "a\\
> Completing files
> a\\ d/ a\\ b
>
> And then going on:
>
> schaefer<506> ls "a\\ <TAB>
> schaefer<506> ls "a\\ d/<TAB>
> schaefer<506> ls "a\\ b"
>
Wrong example. My concern is
zsh -c "ls TAB"
It is _here_ it should escape spaces:
itsrm2% ls "
a b/ c d/ uudecode/
O.K. (just lists filenames verbatim)
but
itsrm2% zsh -c "ls
a\\ b c\\ d uudecode/
wrong (upon dequoting of matches). Second TAB:
itsrm2% zsh -c "ls a\\ b
a\\ b c\\ d uudecode/
so correctly escaped filename is inserted but is not unquoted when
testing for file type.
> One oddity is that typing the closing quote after `ls "a\\ d/' does not
> auto-remove the slash, but I don't think that's strictly a bug.
>
May be it should; but then it becomes increasingly more complicated with
nested quotes. Besides, you may want to continue quoted word ...
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author