in reply to Re: [OT] 'perl' is not the 'perl' reported by 'which perl'
in thread [OT] 'perl' is not the 'perl' reported by 'which perl'
You seem to have figured out that the issue here is bash's hashing. You can delete the entire hash with hash -r or just the one path with hash -d perl.
which(1) can be pretty squirrelly and and should be avoided. Bash has the type builtin which will display aliases as well as executable files. To get the documentation on bash builtins, you can use the help builtin. e.g. help type
Canonical names aren't an issue here but realpath is how you get one.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: [OT] 'perl' is not the 'perl' reported by 'which perl'
by syphilis (Archbishop) on Aug 22, 2020 at 11:38 UTC |