Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
more tinkering with whence
- X-seq: zsh-workers 33698
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: more tinkering with whence
- Date: Sun, 16 Nov 2014 15:37:09 -0800
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author