From: Bart Schaefer <schaefer@brasslantern.com>
To: Rudi C <rudiwillalwaysloveyou@gmail.com>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: [BUG] The commands array contains dirs instead of the actual executables
Date: Thu, 1 Oct 2020 21:43:20 -0700 [thread overview]
Message-ID: <CAH+w=7bSVoR4iK-MX_S6tP=ia6+8=LxCN53YD4MNui1VtAGU3g@mail.gmail.com> (raw)
In-Reply-To: <CAE9z9A1A-9NFdT2taey6Y18Ek7hg4pRO-goUYvsh-xChriZvGg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 714 bytes --]
Please include at least some expository context in your messages, rather
than merely quote a command transcript. The fact that there are multiple
slashes in your $commands values indicates to me that you're probably doing
something wrong with the setting of $path, but without context I can't
guess what.
Command hashing does not expect $path to include the names of directories
which further contain other subdirectories. For speed, only the names of
the items found inside path directories are scanned/cached, rather than
examining the items themselves.
You can change this by "setopt hash_executables_only" or (I suspect) by
placing /Users/evar/scripts at the end of your $path instead of at the
beginning.
[-- Attachment #2: Type: text/html, Size: 804 bytes --]
prev parent reply other threads:[~2020-10-02 4:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-01 10:31 Rudi C
2020-10-02 4:43 ` Bart Schaefer [this message]
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='CAH+w=7bSVoR4iK-MX_S6tP=ia6+8=LxCN53YD4MNui1VtAGU3g@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=rudiwillalwaysloveyou@gmail.com \
--cc=zsh-workers@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).