[2003-01-22] Toon Knapen wrote: >> OK, I updated the script to prefer using "whence" to detect things in the >> PATH. This should make it work for you. But to make sure could you see if >> "whence" works in AIX any better... >> >> whence xlc 2>/dev/null ; echo $? >> whence foo 2>/dev/null ; echo $? >> >> The expected result is: >> >> 0 >> 1 >> > >sorry to disappoint you (and me) > >biot:/home/tk/boost/boost/tools/build/jam_src> /bin/sh >biot:/home/tk/boost/boost/tools/build/jam_src> whence xlc >/usr/vacpp/bin/xlc >biot:/home/tk/boost/boost/tools/build/jam_src> echo $? >0 >biot:/home/tk/boost/boost/tools/build/jam_src> which xlc >/usr/vacpp/bin/xlc >biot:/home/tk/boost/boost/tools/build/jam_src> echo $? >0
Ahh, maybe you should reread my post ;-) "0" is a successfull return for "whence". A failure is anything other than zero, usually "1". Hence the "whence foo", should return non-zero. I know it's the inverse of C :-( -- grafik - Don't Assume Anything -- [EMAIL PROTECTED] - [EMAIL PROTECTED] -- 102708583@icq _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost