|
From: | David Boyce |
Subject: | Re: suppressing shell error output |
Date: | Tue, 13 Sep 2005 22:19:23 -0400 |
At 09:49 PM 9/13/2005, Paul D. Smith wrote:
%% Mike Frysinger <address@hidden> 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.
[Prev in Thread] | Current Thread | [Next in Thread] |