[jamming] Expansion Problem?

Craig Allsop cjamallsop at gmail.com
Wed Sep 6 06:03:54 PDT 2006


Hi.

Using jam 2.5 - is this normal?

DEFAULT = e f ;
VAR = a b c ;
echo $(VAR:E=$(DEFAULT)) ;

 >jam
a b c a b c
...found 7 target(s)...

The E modifier should only use it's value if the variable is unset?

No problem with this:

SPACE = " " ;
echo $(VAR:E=e$(SPACE)f) ;

or this:

echo $(VAR:E=e\ f) ;

or even this:

SPACE = " " ;
DEFAULT = e$(SPACE)f ;
echo $(VAR:E=$(DEFAULT)) ;

Craig.


More information about the jamming mailing list