summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-12 12:11:56 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-12 12:11:56 (EDT)
commit6c72cb41a58f300096fad55cadfe64b32754461f (patch)
tree6078abb839615fbb43b4ecba04d9876366f380b0
parentf67cff9b17798b41429e8382ffd15f4d1a2b854f (diff)
ob_substvars(): Replace echo in eval command
-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