summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/control.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/control.sh b/lib/control.sh
index ddd7cc9..7a85715 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -319,10 +319,7 @@ ob_substvars()
esac
# Perform the substitution.
- name="$(tr 'a-z-' 'A-Z_' <<-EOF
- ${name}
- EOF
- )"
+ name="$(printf '%s' "${name}" | tr 'a-z-' 'A-Z_')"
if eval "[ x\"\${_OB_SUBSTVAR_SRC_${name}:+set}\" = x'set' ]"
then
name="_OB_SUBSTVAR_SRC_${name}"