Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Inconsistent tab completion with 'autocd' option and with 'cd' command



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