in reply to Re: [OT] 'perl' is not the 'perl' reported by 'which perl'
in thread [OT] 'perl' is not the 'perl' reported by 'which perl'

I think the excellent links provided in Re^3: [OT] 'perl' is not the 'perl' reported by 'which perl' (which vs type References) explain why.

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