ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: Patch for ProjectHelper
Date Thu, 13 Jul 2000 11:06:17 GMT
>>>>> "NM" == Niklas Mehner <wombat@iamanidiot.com> writes:

 NM> If a '$' is encountered WITHOUT a following '{', it should simply
 NM> be appended to sb and the prev increased by one. Increasing prev
 NM> by 2 might result in not beeing able to deal with something like
 NM> "$${var}" ... the old code resulted in losing the '$' ...

Hmm, $$ is the (undocumented) way to escape a literal $ so $${var}
gets transformed into ${var} without interpreting a property named
var. This _is_ the intended behavior. 

If you really wanted the first $ to appear as well, you should use
$$${var} to get $foo if "foo" is the value of the property named var.

Stefan

Mime
View raw message