summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 17:40:41 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 17:40:41 (EDT)
commit54f1cb544e55189287ad05ef02e0bcdcbd9912c0 (patch)
treef649d790dc51d337c7e45863d203c5ab140c00df /lib
parent4ede09dc06f5c5abfe0aaf7408252239db075e49 (diff)
ob_substvars(): Replace here-document with printf
Diffstat (limited to 'lib')
-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}"