On Sat, Jan 20, 2018 at 2:10 AM, Cameron Simpson cs@cskk.id.au wrote:
Also: "which rm" should show what executable is being used, and the bash "which" IIRC also shows if an alias or function is involved (I'm a zsh person myself).
There's no "which" builtin in bash. IIRC, only tcsh and zsh have one.
On Debuntu, "which" is an sh script (as it was a csh script in the past in Unix):
th@sid ~ $ file /bin/which /bin/which: POSIX shell script, ASCII text executable th@sid ~ $
It only shows a command with an absolute path and it only has a "-a" option:
th@sid ~ $ which -a which /usr/bin/which /bin/which th@sid ~ $
In bash, "command -v", "command -V", "type -t" will show what an executable is.