Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ä '.



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