>>>>> "NM" == Niklas Mehner <[EMAIL PROTECTED]> 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