summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/control.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/control.sh b/lib/control.sh
index a792486..48b71fa 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -286,7 +286,7 @@ ob_substvars()
# Perform the substitution.
name="$(echo "${name}" | tr 'a-z-' 'A-Z_')"
- value="$(eval echo \"\$\{"_OB_SUBSTVAR_${name}"\}\")"
+ value="$(eval "printf '%s' \"\${_OB_SUBSTVAR_${name}}\"")"
string="${lhs}${value}${rhs}"
depth=$(($depth + 1))
done