Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ä '.
- X-seq: zsh-workers 25867
- From: Morita Sho <morita-pub-en-debian@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx, 501851@xxxxxxxxxxxxxxx
- Subject: Re: Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.
- Date: Mon, 13 Oct 2008 10:32:05 +0900
- In-reply-to: <20081011225255.0df2e350@pws-pc>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20081010230611.23133.42221.reportbug@debian> <20081010231712.GA20915@xxxxxxxx> <48F0AE88.1020307@xxxxxxxxxxxxxxxx> <20081011225255.0df2e350@pws-pc>
On 10/12/2008 06:52 AM, Peter Stephenson wrote:
> The pattern gets divided up into chunks because of the backslashed
> characters, but we don't report that it wasn't a pure string on that
> basis, so the directory trise to match the wrong string. This was triggered
> in this case because of the character in a range that zsh has to quote
> internally to avoid clashing with tokens, which is why it occurred with
> some forms of accent but not others.
>
> I could optimise this better but this is a simple change for now.
Thanks for your work.
I have checkouted the latest source code from cvs head. I can see $~tmp1
expansion works correctly, but '()Ą'/[TAB] completion still not works.
% mkdir '()Ą'
% touch '()Ą'/foo
% ls '()Ą'/[TAB]
=> Nothing completes.
% tmp1='\(\)Ą/*'
% print $~tmp1
()Ą/foo
Additionally, Ą/[TAB] completion doesn't work on cvs head. (It was working on
zsh 4.3.6)
% mkdir Ą
% touch Ą/foo
% ls Ą/[TAB]
=> Nothing completes.
Replacing _path_files with previous one (zsh 4.3.6) seems to solve the problem.
I'm not sure, but it might be a regression in _path_files.
Regards,
--
Morita Sho <morita-pub-en-debian@xxxxxxxxxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author