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: Chet Ramey
Subject: Re: 'hash foo' may fail, and would require something like 'hash /usr/bin/foo'
Date: Tue, 22 Feb 2022 15:17:06 -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 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/



reply via email to

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