Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Inconsistent tab completion with 'autocd' option and with 'cd' command
- X-seq: zsh-workers 35616
- From: Patrick Palka <patrick@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Inconsistent tab completion with 'autocd' option and with 'cd' command
- Date: Fri, 26 Jun 2015 14:55:33 -0400
- 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
Hello,
I noticed that there is a discrepancy between the tab completion of
"cd ../<TAB>" and with the 'autocd' equivalent "../<TAB>". It seems
that the latter canonicalizes the current path -- resolving symlinks
-- and the former does not which gives different results when the
current path has a symlink component. Here's a simple test case:
$ setopt autocd
$ mkdir z
$ cd z
$ mkdir -p a/b
$ ln -s a/b c
$ cd c
$ cd ../<TAB>
a/ c@
$ ../<TAB>
b/
In particular I am not a fan of the completion results of the 'autocd'
variant. It would be nice if the two completion results were
consistent. Hope this "bug report" is clear and helpful :)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author