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

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



On Mon, Oct 31, 2022 at 2:31 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> We can even get three restatements:
>
>
>     2 /aWorking/Zsh/Source/Wk 0 $ /bin
>
>     2 /bin 0 $ whence -mavS "zsh"
>
>     zsh is ./zsh
>     zsh is /usr/bin/zsh
>     zsh is zsh

Here's what I get with zsh 5.9:

    % docker run -e TERM -it --rm zshusers/zsh:5.9 zsh
    # cd /usr/bin
    # PATH=.:$PATH whence -mavS zsh
    zsh is ./zsh
    zsh is /usr/bin/zsh

Does this look the way you want?

How do I get "zsh is zsh" in the output? Are you perchance on an old
version of zsh? Which one?

Roman.




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