bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'hash foo' may fail, and would require something like 'hash /usr/bin


From: Benoit Lacelle
Subject: Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo'
Date: Tue, 22 Feb 2022 21:38:57 +0100

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*

Le mar. 22 févr. 2022 à 21:37, Chet Ramey <chet.ramey@case.edu> a écrit :

> On 2/22/22 3:35 PM, Benoit Lacelle wrote:
>
> > I understand we observe the same behavior, except on 'hash npm'.
>
> So now you look at $PATH and see whether there are files named `npm' in
> any directory in $PATH.
>
>
> --
> ``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/
>


-- 
Benoit Lacelle
Java/ML/BigData Elite Engineer
+33 6 78 83 92 66
benoit.lacelle@solven.eu


reply via email to

[Prev in Thread] Current Thread [Next in Thread]