Boost logo

Boost-Build :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-06-22 08:54:43


Craig Rodrigues wrote:
> On Tue, Jun 21, 2005 at 10:16:37PM -0500, Rene Rivera wrote:
>
>>Sorry but I can't apply the patch as it's going to break other Unix like
>>systems, like OpenBSD and Solaris.
>
> Well, I just checked (with the help of some friends on IRC) on the following
> platforms: NetBSD, FreeBSD, OpenBSD, MacOS X, Solaris, and IRIX. "type" is a
> valid shell-builtin for "/bin/sh" on all those platforms, while "whence" is
> not (although whence is available on some platforms).

Some of those friends lied to you. That is not true for OpenBSD 3.7.

> If you are going to invoke "/bin/sh" for build.sh, then you
> should strive for portability, and do what is POSIX compliant.
> "type" is documented as part of the POSIX/Single Unix Specification
> here:

I am trying to strive for actual portability, not theoretical
portability. The POSIX spec doesn't help if the various shells don't
follow it :-(

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

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk