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

non-executables in PATH and tab-completion



If there are files without executable flags in the PATH, zsh still
completes these.  (a)  Is this a bug?  (b) can this be disabled?

Example:

 $ mkdir -p ~/tmp/bin
 $ cd ~/tmp/bin
 $ touch foo.sh foo.bar
 $ chmod 640 foo.bar
 $ chmod 750 foo.sh
 $ export PATH="$HOME/tmp/bin:$PATH"
 $ hash -rf
 $ foo.<tab>
 foo.bar  foo.sh

Tab is bound to "expand-or-complete".

 $ zsh --version
 zsh 5.7.1 (x86_64-debian-linux-gnu)

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt




Messages sorted by: Reverse Date, Date, Thread, Author