zsh-workers
 help / color / mirror / code / Atom feed
* more tinkering with whence
@ 2014-11-16 23:37 Ray Andrews
  2014-11-17  0:59 ` Ray Andrews
  0 siblings, 1 reply; 2+ messages in thread
From: Ray Andrews @ 2014-11-16 23:37 UTC (permalink / raw)
  To: Zsh hackers list

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?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: more tinkering with whence
  2014-11-16 23:37 more tinkering with whence Ray Andrews
@ 2014-11-17  0:59 ` Ray Andrews
  0 siblings, 0 replies; 2+ messages in thread
From: Ray Andrews @ 2014-11-17  0:59 UTC (permalink / raw)
  To: zsh-workers

On 11/16/2014 03:37 PM, Ray Andrews wrote:
> 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?
>
rehash :-)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-17  0:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-16 23:37 more tinkering with whence Ray Andrews
2014-11-17  0:59 ` Ray Andrews

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).