zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Possible file completion bug when the path contains a backslash
Date: Fri, 11 Jan 2013 21:00:33 -0800	[thread overview]
Message-ID: <130111210033.ZM11819@torch.brasslantern.com> (raw)
In-Reply-To: <CA+pPVKvdEF_uciZ99pcCkpUwyrdrDD3GTLgN+BPqHpDtTEFVXA@mail.gmail.com>

On Jan 11, 11:22am, Drew Frank wrote:
}
} $ autoload -U compinit
} $ compinit
} $ ls bad\\dir/[TAB]
} 
} Any idea what's going on here? Is this, in fact, a bug?

It appears to be a bug in the (largely undocumented) compfiles builtin,
which generates a glob pattern of 'baddir*(-/)' for the directory in
question, which then does not match.  Special characters other than a
backslash appear to be handled correctly, at least in a few minimal
tests I tried.

Don't have time right now to try to trace this down (and frankly don't
care to venture into that part of the code if I don't have to ...).


      reply	other threads:[~2013-01-12  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-11 19:22 Drew Frank
2013-01-12  5:00 ` Bart Schaefer [this message]

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=130111210033.ZM11819@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).