Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: whence output varies with dot vs. realpath in $PATH



I get the same output with zsh 5.8 as with 5.9. It's the output I posted above.
There must be something else in your setup that is required to get the
line saying "zsh is zsh".

Hmmm ... it's down to the dot it seems:

... With the expanded dot in my path:

2 /bin 0 $ whence -mavS "zsh"

zsh is /usr/bin/zsh

2 /bin 0 $ zsh

... Restart puts the dot back in the path:

2 /bin 1 $ whence -mavS "zsh"

zsh is ./zsh
zsh is /usr/bin/zsh
zsh is zsh



Roman.





Messages sorted by: Reverse Date, Date, Thread, Author