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

Re: whence (was Re: local unfunction)



Bart Schaefer wrote on Sun, Apr 01, 2018 at 11:17:40 -0700:
> On Sun, Apr 1, 2018 at 10:33 AM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > So, -m can lie if 'rehash' hasn't been run since $PATH was last changed?
> 
> It forces a cmdnamtab->filltable() before scanning, so I think not.

Let me rephrase.  In your example:

> > > % path=(./Src $path)
> > > % whence zsh
> > > ./Src/zsh
> > > % whence -a zsh
> > > ./Src/zsh
> > > /bin/zsh
> > > % whence -m zsh
> > > /bin/zsh
> > > %

why do 'whence' and 'whence -m' give different results?  Isn't one or the other
wrong?



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