Boost logo

Boost-Build :

From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2005-06-22 18:11:05

On Wed, Jun 22, 2005 at 08:54:43AM -0500, Rene Rivera wrote:
> Some of those friends lied to you. That is not true for OpenBSD 3.7.

For OpenBSD's /bin/sh (ksh), type is aliased to "whence -v", so it still works.

> I'm going to go with the helpful suggestion from Markus of "command -v"
> I can verify that is available on OpenBSD (pdsh/pdksh), Linux (bash),
> and MacOSX (bash).

That is a good solution. Can you make one slight modification to your
patch? FreeBSD's /bin/sh supports "command", but not the "-v" flag to

RCS file: /cvsroot/boost/boost/tools/build/jam_src/,v
retrieving revision 1.31
diff -u -u -r1.31
--- 22 Jun 2005 13:59:39 -0000 1.31
+++ 22 Jun 2005 23:10:51 -0000
@@ -43,7 +43,7 @@
# Check that a command is in the PATH.
test_path ()
- if `command 1>/dev/null 2>/dev/null`; then
+ if `command -v 1>/dev/null 2>/dev/null`; then
command -v $1 1>/dev/null 2>/dev/null
hash $1 1>/dev/null 2>/dev/null

Craig Rodrigues 

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at