Boost logo

Boost-Build :

Subject: Re: [Boost-build] Variable expansion in actions - bug or feature?
From: Jurko Gospodnetiæ (jurko.gospodnetic_at_[hidden])
Date: 2012-05-26 13:57:08


   Hi all.

> Just wandering if I'm reading something wrong here, but I do not
> understand why variable expansion seems to work differently in regular
> (non-action) Boost Jam code and inside action code. Is this intentional
> or is this a bug?

   Well, I just found the following sentence in Boost Build docs so I
guess this is intentional: 'Variable expansion in a rule's actions is
similar to variable expansion in statements, except that the action
string is tokenized at whitespace regardless of quoting.'

> An if it is intentional - I know of at least one place in Boost Build
> code that is broken by this feature ('time' action in the testing.jam
> module).

   I'll go ahead and fix this then and add related unit tests if I can
not find suitable already existing ones.

   Best regards,
     Jurko Gospodnetiæ


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