zsh-workers
 help / color / mirror / code / Atom feed
From: Morita Sho <morita-pub-en-debian@inz.sakura.ne.jp>
To: zsh-workers@sunsite.dk, 501851@bugs.debian.org
Subject: Re: Bug#501851: zsh: Completion fails if a directory name contains '(', ')' and 'Ą '.
Date: Mon, 13 Oct 2008 10:32:05 +0900	[thread overview]
Message-ID: <48F2A515.1030203@inz.sakura.ne.jp> (raw)
In-Reply-To: <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@inz.sakura.ne.jp>


  reply	other threads:[~2008-10-13  1:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20081010230611.23133.42221.reportbug@debian>
2008-10-10 23:17 ` Clint Adams
2008-10-11 12:09   ` Richard Hartmann
2008-10-11 13:47   ` Morita Sho
2008-10-11 21:52     ` Peter Stephenson
2008-10-13  1:32       ` Morita Sho [this message]
2008-10-13  6:25         ` Richard Hartmann
2008-10-14  1:46           ` Morita Sho
2008-10-14 12:04             ` Peter Stephenson
2008-10-15  4:34               ` Morita Sho
2008-10-18 18:48                 ` Peter Stephenson
2008-10-19  6:00                   ` Morita Sho
2008-10-13  9:30         ` Peter Stephenson
2008-10-13 12:50           ` Richard Hartmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48F2A515.1030203@inz.sakura.ne.jp \
    --to=morita-pub-en-debian@inz.sakura.ne.jp \
    --cc=501851@bugs.debian.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).