From 6c72cb41a58f300096fad55cadfe64b32754461f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 12 Mar 2019 12:11:56 -0400 Subject: ob_substvars(): Replace echo in eval command --- (limited to 'lib') 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 -- cgit v0.9.1