|
Boost-Build : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-01-27 12:30:21
Vladimir Prus <ghost_at_[hidden]> writes:
> On Thursday 27 January 2005 16:52, David Abrahams wrote:
>> Vladimir Prus <ghost_at_[hidden]> writes:
>> > Probably, just the "getenv" rule in Jamfile content, that will peek the
>> > global module and reconstruct spaces:
>> >
>> > rule getenv ( name )
>> > {
>> > local v = [ module.peek : $(name) ] ;
>> > return $(v:J=' ') ;
>> > }
>> >
>> > ? It's a bit easier that a new builtin.
>>
>> But it's not reliable. Hint: what happens if the variable value has
>> two consecutive spaces in it?
>
> Sure, you get burned. Though it probably won't affect 99.9% of all users. But
> then if we plan to port to Python, we might as well wait till then. Python
> already has getenv somewhere.
Yes it does. I don't care about this issue enough to press it before
we do the port.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
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