Comment by pmarreck
19 days ago
I do the same thing, but I also have a command that shows me what functions or scripts might be shadowing other scripts
19 days ago
I do the same thing, but I also have a command that shows me what functions or scripts might be shadowing other scripts
Care to share?
the sibling answer but with `-a` before command name, will display all path hits for a command.
Seemed like it was more than that, but the comment is ambiguous. I took it to mean "show me all the commands which are shadowed" not "is this command shadowed"...
nope, that just gets you the first hit, not all of them
type -a commandname
quite simple
type -a <commandname>
this. which(1) and whereis(1) are not bash, only an approximation or coincidence at best:
As a bash built-in, only the type command invokes the installed bash's code path to resolve command words: