In short: which was invented as an executable for csh , but bash later implemented type as proper built-in.
In other words "which" is an alien to bash's logic.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^2: [OT] 'perl' is not the 'perl' reported by 'which perl'
by LanX
in thread [OT] 'perl' is not the 'perl' reported by 'which perl'
by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |