Boost logo

Boost-Build :

From: Misha Bergal (gclbb-jamboost_at_[hidden])
Date: 2003-09-23 00:43:19

Rene Rivera <grafik666_at_[hidden]> writes:

>>actions do_A
>> {
>> echo "$(<)">test
>> set A="$(<)"
>> echo "%A%">>test
>> }
>>A d ;
>>This is what I get in file test:
>>""d" "
>>1. The first line has a space after last quote <"><d><"><space>
>>2. The second line has a space after 3rd quote <"><">d<"><space><">
>>This prevents the build on latest Comeau 4.3.3b8. The @
>>command files get generated with extra spaces in them.
> Just tried some tests out on the WinXP command prompt. This is really a bug
> in the Windows command prompt. If you try this in a regular command
> window...
> echo "test"[space]>test
> set A="test"[space]
> echo "%A%">>test
>...replacing [space] for a real space ;-) You get those spaces in the file.
>It just so happens that the action is getting split and passed into the
>command execution with the extra space :-(

Right, but where am I getting this extra space from? Are you saying
that in jamfile "A d ;", the rule a gets called with value "d " as an argument.

>My question is.. How does Comeau choke on it? That is; is it the "--"[space]
>that's causing problems? Or is it the ""--"[space]" that barfs? And where in
>Boost.Build is it doing that (link, cc, c++, archive, etc.)?

cmd file generation, Boost.Build

>And more importantly.. what is it supposed to be feeding to Comeau? (can't
>fix it if I don't know what it wants)

Here is a relevant snippet from out local como toolset (see

with-command-file <comeau-action> $(<) : $(>) ;

the .cmd file gets generated with spaces after quote:


4.3.3b8 doesn't understand that - it is a regression from 4.3.2

If it is not a bjam problem, I can contact Greg Comeau and request a
fix, which actually I am going to do anyway.

Thanks a lot.

Misha Bergal
MetaCommunications Engineering

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