diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/substvars.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/substvars.sh b/lib/substvars.sh index 457fb9f..55bbee9 100644 --- a/lib/substvars.sh +++ b/lib/substvars.sh @@ -93,7 +93,7 @@ substvars() old_rhs="${rhs}" # Perform the substitution. - name="$(echo "${name}" | tr 'A-Z-' 'a-z_')" + name="$(printf '%s\n' "${name}" | tr 'A-Z-' 'a-z_')" value="$(eval printf '%s\n' "\"\${substvar_${name}}\"")" string="${lhs}${value}${rhs}" depth=$(($depth + 1)) |