From 54f1cb544e55189287ad05ef02e0bcdcbd9912c0 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 18 Mar 2019 17:40:41 -0400 Subject: ob_substvars(): Replace here-document with printf --- 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}" -- cgit v0.9.1