Re: 'hash foo' may fail, and would require something like 'hash /usr/bin
From:
Chet Ramey
Subject:
Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo'
Date:
Tue, 22 Feb 2022 15:59:30 -0500
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1
On 2/22/22 3:38 PM, Benoit Lacelle wrote:
> bash-5.1# echo $PATH
>
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>
> bash-5.1# ls /usr/local/bin/npm
>
> */usr/local/bin/npm
>
> -> yes, there is such a file in a folder described by $PATH*
I don't know what else to tell you. I can't reproduce it using ostensibly
the same environment you have, so I can't be much help from here.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/