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 3:06 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>>
> On 2022-10-31 06:43, Roman Perepelitsa wrote:
> >
> >      % 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?
>
> Better sure, the redundant line isn't there.

Is there anything else in the output that you don't like?

> >
> > How do I get "zsh is zsh" in the output? Are you perchance on an old
> > version of zsh? Which one?
> 2 /usr/bin 1 $ zsh --version
>
> zsh 5.8 (x86_64-debian-linux-gnu)

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

Roman.




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