From 7f93ffb1839c39e16495c8feb450e9ae00a3777f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 18 Mar 2019 16:08:14 -0400 Subject: ob_set_source_substvar(), ob_substvars(): Rename eval'ed var --- diff --git a/lib/control.sh b/lib/control.sh index 37123dd..d25527f 100644 --- a/lib/control.sh +++ b/lib/control.sh @@ -211,7 +211,7 @@ ob_set_source_substvar() # Trim leading and trailing whitespace from value. value="$(printf '%s' "${value}" | sed -n "${_OB_SUBSTVAR_TRIM_SED}")" - eval "_OB_SUBSTVAR_${name}=\"\${value}\"" + eval "_OB_SUBSTVAR_SRC_${name}=\"\${value}\"" return 0 } @@ -279,7 +279,7 @@ ob_substvars() ${name} EOF )" - value="$(eval "printf '%s' \"\${_OB_SUBSTVAR_${name}}\"")" + value="$(eval "printf '%s' \"\${_OB_SUBSTVAR_SRC_${name}}\"")" string="${lhs}${value}${rhs}" depth=$((${depth} + 1)) done -- cgit v0.9.1