which
was a csh command (well a csh
script that read your ~/.cshrc
), whence
was the Korn shell's answer to csh
's which
, type
the Bourne shell one, command -v/V
the POSIX one...
zsh
implements ksh
's whence
with a few extensions, but also provides a which
alias for the csh junkies and type
/command -v/V
for POSIX compliance which are just the same command but with different default behaviour.
which
iswhence -c
(c
forcsh
)type
iswhence -v
(more verbosewhence
)whereiswhere
iswhence -ca
- POSIX
command -v
is likewhence
- POSIX
command -V
is likewhence -v
You'll find some more information (though in a bit of a messy way, sorry) at Why not use "which"? What to use then?