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 6:59 PM, Ray Andrews wrote:
> On 2022-10-31 14:18, Bart Schaefer wrote:
>> The "zsh is zsh" output means you have an empty path element, e.g. two
>> consecutive colons in $PATH or $PATH begins or ends with colon, and an
>> executable or link named "zsh" in the current directory.
>>
>
>> 2 /aWorking/Zsh/Source/Wk 1 $ echo $PATH
>> /aWorking/Zsh/Source/Wk:/usr/local/bin:/usr/sbin:/usr/bin:
>>
> Thereyago, I'll kill that trailing colon. Still, it seems like
> something that should be ignored.
Why should whence ignore it? An empty PATH element actually means
something to PATH searches; it is not cosmetic.
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author