From ec4f1c6409742f9f4bea0efef2c994c51e88c0c7 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 29 Dec 2018 00:24:24 -0500 Subject: ob_set_substvar(): Improve eval command --- diff --git a/lib/control.sh b/lib/control.sh index 15faf45..53a3ea8 100644 --- a/lib/control.sh +++ b/lib/control.sh @@ -237,10 +237,7 @@ ob_set_substvar() }; ')" - # Escape single quotes in value. - value="$(printf '%s\n' "${value}" | sed "s/'/'\\\\''/g")" - - eval "_OB_SUBSTVAR_${name}='${value}'" + eval "_OB_SUBSTVAR_${name}=\"\${value}\"" return 0 } -- cgit v0.9.1