Boost logo

Boost :

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


[2003-01-22] Toon Knapen wrote:

>> So it could be that the "hash" command doesn't work in AIX as I expected.
>
>To check I first go to a sh (I'm in ksh by default) to check if my PATH is
>propagated. The 'which' shows indeed that this is the case. However the
>'hash' command has a zero-return (I did not know it but I suppose it's
>supposed to return a non-zero or ...?)
>
>biot:/home/tk/boost/boost/tools/build/jam_src> /bin/sh
>biot:/home/tk/boost/boost/tools/build/jam_src> which xlc
>/usr/vacpp/bin/xlc
>biot:/home/tk/boost/boost/tools/build/jam_src> hash xlc
>biot:/home/tk/boost/boost/tools/build/jam_src> echo $?
>0
>biot:/home/tk/boost/boost/tools/build/jam_src>

Well darn it ;-)

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

-- 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