Boost logo

Boost :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2003-01-22 12:51:05


[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
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk