Of the three examples here only hash correctly reports if an executable is in the PATH. type -p and command -v both report success on aliases, builtins, etc.
type -P (capital P) does correctly report if an executable is in the PATH.
Perhaps this section could be reworded to make this distinction more clear?
Of the three examples here only
hash
correctly reports if an executable is in the PATH.type -p
andcommand -v
both report success on aliases, builtins, etc.type -P
(capital P) does correctly report if an executable is in the PATH.Perhaps this section could be reworded to make this distinction more clear?