]> diplodocus.org Git - nmh/commitdiff
Tweaked to work with Heirloom shell.
authorDavid Levine <levinedl@acm.org>
Sun, 26 Feb 2017 18:41:34 +0000 (13:41 -0500)
committerDavid Levine <levinedl@acm.org>
Sun, 26 Feb 2017 18:41:34 +0000 (13:41 -0500)
Shell parameter expansion ending in space needs it to be quoted.

build_nmh

index e1f04a8..8056670 100755 (executable)
--- a/build_nmh
+++ b/build_nmh
@@ -374,7 +374,7 @@ if [ -z "$CFLAGS" ]; then
 fi
 
 printf "\n./configure ${CFLAGS:+CFLAGS=\"${CFLAGS}\" }$config_opts\n"
-./configure ${CFLAGS:+CFLAGS="${CFLAGS}" }$config_opts
+./configure ${CFLAGS:+CFLAGS="${CFLAGS}"" "}$config_opts
 status=$?
 
 if [ $status -eq 0 ]; then