Boost logo

Boost-Build :

Subject: Re: [Boost-build] Doc build failure on release branch
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-10-10 00:44:42

On Thursday 09 October 2008 18:21:36 Steve M. Robbins wrote:
> On Thu, Oct 09, 2008 at 09:36:15AM +0400, Vladimir Prus wrote:
> > In fact, the original
> >
> > return "$(variable)=$(value)$(nl)export $(variable)$(nl)" ;
> >
> > probably is too complex, as
> >
> > return "export $(variable)=$(value)$(nl)" ;
> >
> > should work everywhere, too.
> Actually, it is the first formulation that is more portable.
> The second works in Bash (and perhaps other shells) but not in the
> original Bourne shell. I'm not sure whether cygwin can be installed
> with /bin/sh as something other than bash, but it's safer to use the
> original IMHO.

Then, it seems the possible solutions are:

- make bjam understand \r and \n
- strip \r in the commands bjam issues. Note that when parsing
the action blocks, bjam already strips \r, but it does not do
anything with \r that appeared as result of variable expansion,
like in this case.


- Volodya

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