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 11:53:22 -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 11:48 AM, Benoit Lacelle wrote:
> Just in case, the reference github tickets holds additional details
> (https://github.com/disney/meteor-base/pull/102#issuecomment-1047254127
> <https://github.com/disney/meteor-base/pull/102#issuecomment-1047254127>).
> I was unsure what best to provide in this report.
> 
> By fail, I mean 'hash npm' unexpectedly returns 'bash: hash: npm: not
> found' in given CircleCI environment, while in other environments (e.g.
> local MacOS), it returns (as expected) an empty output (as in both
> cases, 'npm' does succeeded resolving a path and execuring npm).

Then either it's not in $PATH or the `npm' found first in $PATH is not an
executable file.

I wonder if `type -a npm' right after the `hash npm' would show something
more.

-- 
``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]