zsh-users
 help / color / mirror / code / Atom feed
From: Dominik Vogt <dominik.vogt@gmx.de>
To: Zsh Users <zsh-users@zsh.org>
Subject: non-executables in PATH and tab-completion
Date: Mon, 8 Mar 2021 17:10:38 +0100	[thread overview]
Message-ID: <20210308161038.GA2069@gmx.de> (raw)

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


             reply	other threads:[~2021-03-08 16:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-08 16:10 Dominik Vogt [this message]
2021-03-08 16:23 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210308161038.GA2069@gmx.de \
    --to=dominik.vogt@gmx.de \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).