Boost logo

Boost-Build :

From: Martin Wille (mw8329_at_[hidden])
Date: 2005-06-21 23:25:38

Rene Rivera wrote:
> Craig Rodrigues wrote:
>>The "whence" command is not available on all Unix variants,
> You mean all "shells" not "Unix variants".
>>so I suggest that it be replace by "type"
>>which is builtin for the /bin/sh shell.
> "whence" *is* a builtin for bourne shell. You must mean that it's not a
> builtin for bash.

I don't think "whence" is a builtin for bourne shell, at least not for
older versions of it. It is a builtin for korn shell. However, "type"
isn't a builtin, either.

>>This will get rid of error messages that prints out
>>when I build bjam on Linux and FreeBSD.
> OK, I never got warnings on RedHat, so I guess it has a real bourne
> shell (or something closer to a real one) instead of a symlink from "sh"
> to "bash".
> Sorry but I can't apply the patch as it's going to break other Unix like
> systems, like OpenBSD and Solaris. Is there some way to check that the
> shell isn't really a bourne shell but a bash shell?

bash sets a couple of variables, e.g. BASH and BASH_VERSION.
pdksh sets KSH_VERSION. ksh sets {.sh.version}.

Send instant messages to your online friends


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