|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-01-27 09:10:33
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.
- Volodya
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