At 09:49 PM 9/13/2005, Paul D. Smith wrote:
%% Mike Frysinger <[EMAIL PROTECTED]> writes:
mf> if the machine doesnt have 'which' then it probably doesnt support
mf> the 'type' utility either (type is required by SuSv3 but which is
mf> not ...) -mike
Actually, 99% of the time "which" is implemented as a csh script--ugh!
Worse, it's a csh script which sources ~/.cshrc!! At least it did the
last time I used csh seriously which was a long time ago. This can
lead to mysterious, not to mention wrong, results because "which foo"
will read .cshrc, change path accordingly, and tell you it found foo
in location A. You will then go ahead and use $(shell foo ...) and
/bin/sh will proceed to find foo in location B or not at all. Some
systems have replaced it with a fixed, non-csh-specific version but not all.
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make