Boost logo

Boost-Build :

Subject: Re: [Boost-build] "$" character in bjam string
From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2012-06-18 13:49:31


   Hi.

> Could you please clarify how can I use "$" character inside bjam strings? I
> supposed "\" escaping should work, but it does not.
>
>
> For example, "text" variable gets empty value if we assign to it the
> following:
>
> text = "[ wildcard \$(dir)/* ]" ;
>
> where \$(dir) is NOT a variable name, but escaped "$" character and "(dir)".

   It is the $( combination that is confusing bjam. Try something like this:

   d = $ ;
   text = "[ wildcard $(d)(dir)/* ]" ;

or even this: :-)

   $ = $ ;
   text = "[ wildcard $($)(dir)/* ]" ;

   Hope this helps.

   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