Thiemo Seufer <[EMAIL PROTECTED]> writes:

> Joachim Henke wrote:
>> On Wed, 2007-05-09 at 10:51 +0200, Juergen Keil wrote:
>> > Isn't the use of "which" wrong, anyway?  
>> > 
>> > "which" belongs to csh/tcsh, and tells you about csh's/tcsh's idea 
>> > about a command or a csh command alias.
>> > 
>> > IMO, for a /bin/sh (or bash) script, using the "type" command would
>> > be a better idea.
>> 
>> Yes, 'which' is not reliable.
>
> "type" appears to be bash-specific, at least according to the bash
> documentation, so I stuck with "which" for now.

You could use "command -v" from SUSv3.
-- 
Ben Pfaff 
http://benpfaff.org



Reply via email to