Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.6
-
None
-
None
Description
A variable field which is enclosed by ${...} does not get substituted during filtering. If the same variable field is not enclosed as described, the substitution works as expected.
Before filtering:
#!/usr/bin/env bash B=${A:-${maven.default}} DEFAULT="${maven.default}" C=${A:-${DEFAULT}}
After filtering:
#!/usr/bin/env bash B=${A:-${maven.default}} DEFAULT="Hello World" C=${A:-${DEFAULT}}
The code snippet above also describes a possible workaround by defining a variable outside of ${...}.