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 25843
- From: Morita Sho <morita-pub-en-debian@xxxxxxxxxxxxxxxx>
- To: Clint Adams <schizo@xxxxxxxxxx>, 501851@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.
- Date: Sat, 11 Oct 2008 22:47:52 +0900
- In-reply-to: <20081010231712.GA20915@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20081010230611.23133.42221.reportbug@debian> <20081010231712.GA20915@xxxxxxxx>
Thanks for your quick reply.
I found that the difference between '()Ą'/[TAB] and '()Ā'/[TAB] is at line 372
of /usr/share/zsh/functions/Completion/Unix/_path_files.
tmp1=( $~tmp1 ) 2> /dev/null
When I typed '()Ą'/[TAB], tmp1 will be '\(\)Ą/*', and $~tmp1 is expanded to nothing.
When I typed '()Ā'/[TAB], tmp1 will be '\(\)Ā/*', and $~tmp1 is expanded to ()Ā/foo.
$~tmp1 expansion seems not working correctly for a pattern '\(\)Ą/*'.
% ls -R
.:
()Ā ()Ą
./()Ā:
foo
./()Ą:
foo
% tmp1='\(\)Ą/*'; print $~tmp1;
zsh: no matches found: \(\)Ą/*
% tmp1='\(\)Ā/*'; print $~tmp1;
()Ā/foo
But `print \(\)Ą/*` is correctly expanded to ()Ą/foo.
% print \(\)Ą/*
()Ą/foo
Regards,
--
Morita Sho <morita-pub-en-debian@xxxxxxxxxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author