[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 14:35:31 -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 12:19 PM, Benoit Lacelle wrote:
# docker run -it node:14.18.2-alpine sh
Unable to find image 'node:14.18.2-alpine' locally
14.18.2-alpine: Pulling from library/node
59bf1c3509f3: Pull complete
331f5eb007b4: Pull complete
bcd1922beba2: Pull complete
72573d587fdf: Pull complete
Digest: sha256:1e7481a9a977d8e4160a73ed6a0e726724570bf7d941adbec63a82cf7c07ae19
Status: Downloaded newer image for node:14.18.2-alpine
/ # apk --no-cache add bash
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch
https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
(1/4) Installing ncurses-terminfo-base (6.3_p20211120-r0)
(2/4) Installing ncurses-libs (6.3_p20211120-r0)
(3/4) Installing readline (8.1.1-r0)
(4/4) Installing bash (5.1.16-r0)
Executing bash-5.1.16-r0.post-install
Executing busybox-1.34.1-r3.trigger
OK: 10 MiB in 20 packages
/ # bash
bash-5.1# type -a npm
npm is /usr/local/bin/npm
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-5.1# hash
hits command
0 /usr/local/bin/npm
2 /bin/ls
bash-5.1# echo $BASH_VERSION
5.1.16(1)-release
bash-5.1# hash npm ; echo $?
0
bash-5.1# exit
exit
/ # exit
--
``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/
- '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 <=
- 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, 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', Alex fxmbsw7 Ratchev, 2022/02/22