[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:35:06 +0100 |
OK:
bash-5.1# type -a npm
bash: type: npm: not found
bash-5.1# ls -l /usr/local/bin/npm
lrwxrwxrwx 1 root root 38 Jan 3 19:28
*/usr/local/bin/npm* -> *../lib/node_modules/npm/bin/npm-cli.js*
bash-5.1# ls -l /usr/local/lib/node_modules/npm/bin/npm-cli.js
-rwxr-xr-x 1 root root 4706 Nov 30 12:04
*/usr/local/lib/node_modules/npm/bin/npm-cli.js*
bash-5.1# hash npm
bash: hash: npm: not found
bash-5.1# hash
hits command
1 /usr/local/bin/npm
3 /bin/ls
I understand we observe the same behavior, except on 'hash npm'.
Le mar. 22 févr. 2022 à 21:17, Chet Ramey <chet.ramey@case.edu> a écrit :
> On 2/22/22 2:51 PM, Benoit Lacelle wrote:
> > Thanks Chet, but I'm lost. What's next step?
> >
> > I do not reproduce the issue either on my local macos. But I do in a
> > CircleCI VM:
> >
>
> > / # bash
> >
> > bash-5.1# type -a npm
> > bash: type: npm: not found
>
> If it's supposed to be in /usr/local/bin/npm, I guess do the same thing I
> did in the one I started:
>
> ls -l /usr/local/bin/npm
>
> and if it's a symlink
>
> ls -l <symlink target>
>
> --
> ``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
- 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Benoit Lacelle, 2022/02/22
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Chet Ramey, 2022/02/22
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Benoit Lacelle, 2022/02/22
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Chet Ramey, 2022/02/22
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Benoit Lacelle, 2022/02/22
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Chet Ramey, 2022/02/22
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Benoit Lacelle, 2022/02/22
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Greg Wooledge, 2022/02/22
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Chet Ramey, 2022/02/22
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo',
Benoit Lacelle <=
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Chet Ramey, 2022/02/22
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Benoit Lacelle, 2022/02/22
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Chet Ramey, 2022/02/22
- Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo', Alex fxmbsw7 Ratchev, 2022/02/22