zsh-workers
 help / color / mirror / code / Atom feed
From: Drew Frank <drewfrank@gmail.com>
To: zsh-workers@zsh.org
Subject: Possible file completion bug when the path contains a backslash
Date: Fri, 11 Jan 2013 11:22:28 -0800	[thread overview]
Message-ID: <CA+pPVKvdEF_uciZ99pcCkpUwyrdrDD3GTLgN+BPqHpDtTEFVXA@mail.gmail.com> (raw)

Hi zsh-workers,

Briefly, file completion is not working as expected when (1) the
file's path contains a backslash; and (2) I've run compinit. A small
test case that reproduces the problem is provided in my superuser post
(http://superuser.com/questions/531875/zsh-compinit-breaks-file-completion-when-there-is-a-backslash-in-the-path),
but I will repeat it here for convenience:

$ zsh -f
$ mkdir bad\\dir
$ touch bad\\dir/myfile
$ ls bad\\dir/[TAB]

At this point, the path is completed to "bad\\dir/myfile", which is
the behavior I expect. However:

$ autoload -U compinit
$ compinit
$ ls bad\\dir/[TAB]

After running compinit, the completion no longer works. I originally
thought this was "correct" behavior that I could change via some
setting, but someone on the IRC channel told me that they followed
these steps and could not reproduce the problem. They were using zsh
5.0.0-dev-0. I ran this example using both 5.0.2 and 4.3.10, and in
both cases completion failed after running compinit.

Any idea what's going on here? Is this, in fact, a bug?

Thanks,
Drew


             reply	other threads:[~2013-01-11 19:22 UTC|newest]

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

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=CA+pPVKvdEF_uciZ99pcCkpUwyrdrDD3GTLgN+BPqHpDtTEFVXA@mail.gmail.com \
    --to=drewfrank@gmail.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).