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

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



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