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. I already posted a patch regarding Mac OS X here: http://lists.gnu.org/archive/html/qemu-devel/2007-04/msg00649.html It fixes gcc detection only, because the other tools, that are detected by which, are installed anyway. This is of course not clean, but worked for the time. -- Joachim Henke http://base91.sourceforge.net/j-o/