From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-users@zsh.org
Subject: Re: whence (was Re: local unfunction)
Date: Sun, 01 Apr 2018 17:33:56 +0000 [thread overview]
Message-ID: <1522604036.2902094.1322956328.767274EF@webmail.messagingengine.com> (raw)
In-Reply-To: <CAH+w=7ane3_cT75hyZYp_4Zd1aT1eeDbbW9CVpBTZjAhKFQ+Qw@mail.gmail.com>
Bart Schaefer wrote on Sat, 31 Mar 2018 18:18 -0700:
> The other confusion is that -m never searches $path. It always
> populates the command hash table if necessary and then searches the
> hash table.
>
> % path=(./Src $path)
> % whence zsh
> ./Src/zsh
> % whence -a zsh
> ./Src/zsh
> /bin/zsh
> % whence -m zsh
> /bin/zsh
> %
So, -m can lie if 'rehash' hasn't been run since $PATH was last changed?
I'm having trouble seeing why this is useful behaviour.
(Yes, 'rehash' could be expensive, but even so, why does -m give
outdated results as opposed to just erroring out?)
next prev parent reply other threads:[~2018-04-01 17:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-31 15:25 Bart Schaefer
2018-03-31 17:21 ` Ray Andrews
2018-04-01 1:18 ` Bart Schaefer
2018-04-01 4:29 ` Ray Andrews
2018-04-01 17:33 ` Daniel Shahaf [this message]
2018-04-01 18:17 ` Bart Schaefer
2018-04-04 18:10 ` Daniel Shahaf
2018-04-05 0:20 ` Bart Schaefer
2018-04-05 1:41 ` Ray Andrews
2018-04-05 5:08 ` Bart Schaefer
2018-04-05 14:28 ` Ray Andrews
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=1522604036.2902094.1322956328.767274EF@webmail.messagingengine.com \
--to=d.s@daniel.shahaf.name \
--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).