Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Possible file completion bug when the path contains a backslash
- X-seq: zsh-workers 30959
- From: Drew Frank <drewfrank@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Possible file completion bug when the path contains a backslash
- Date: Fri, 11 Jan 2013 11:22:28 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=XeuNCcFAPRg1XagcYVHxS171E5yWm0QrZejgkXMvXv4=; b=rdmglinKS3Od1VittuFkGIxpRoxgFu3FDe8pFsZ5tBPJwm8IMsUHFpeh4F3p9bXMoN p4ugTvalZCnEWb01eMkgmNRo8p7gtfJdnTKcIJKCWP/fN6DP04wqzWsqcxPyK7eKkAog eX9BC6Idp2sEZCqdiKVV7TgcH6CbeggYXAbqDkxHPvOsRqqF7vlwLxv0JJFc7bRucV0r 2yJCvflCd+DVMIgPFZJLWJVduau6mIPaH7G/JWbvzlkrMJoaKOT1aBppCE/iulHnGfVl qqYinb/pdRdZwrZ9gdyJ/e77fnfliln4lJol/Ttul+m0TqVwhemFmIvKyNHqtyQ5DtXA 9aIA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author