Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
non-executables in PATH and tab-completion
- X-seq: zsh-users 26577
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: non-executables in PATH and tab-completion
- Date: Mon, 8 Mar 2021 17:10:38 +0100
- Archived-at: <https://zsh.org/users/26577>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-03/20210308161038.GA2069%40gmx.de>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxx>
- Reply-to: dominik.vogt@xxxxxx
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