From: Ray Andrews <rayandrews@eastlink.ca>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: more tinkering with whence
Date: Sun, 16 Nov 2014 15:37:09 -0800 [thread overview]
Message-ID: <54693525.70902@eastlink.ca> (raw)
All good:
$ whence -mav global
global is a shell function
global is /usr/local/bin/global
Rename the file:
$ mv /usr/local/bin/global /usr/local/bin/gglobal
It now says 'not found', which is true, but ...
$ whence -mav global
global is a shell function
global not found
Restart:
$ zsh
... now it doesn't bother reporting that it's 'not found':
$ whence -mav global
global is a shell function
Rename the file back to 'global', and ...
$ mv /usr/local/bin/gglobal /usr/local/bin/global
... the file isn't found at all:
$ whence -mav global
global is a shell function
Must restart to find it:
$ zsh
... and there is is again:
$ whence -mav global
global is a shell function
global is /usr/local/bin/global
Is there some way to update or inform whence that a new item
exists on the path, without restarting the shell? Is this
something involving the hash table?
next reply other threads:[~2014-11-16 23:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-16 23:37 Ray Andrews [this message]
2014-11-17 0:59 ` 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=54693525.70902@eastlink.ca \
--to=rayandrews@eastlink.ca \
--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).