summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-02-21 15:50:13 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-02-21 15:50:13 -0800
commit835eb2a789b734be42b3e3479fe7c8da0d959e62 (patch)
tree248ce5bbfd55ae408e2bc82e20f3f017c2ee4dc7
parent065e8b113305179de0b489bc8d18452ec1aa5e2a (diff)
downloadtxr-835eb2a789b734be42b3e3479fe7c8da0d959e62.tar.gz
txr-835eb2a789b734be42b3e3479fe7c8da0d959e62.tar.bz2
txr-835eb2a789b734be42b3e3479fe7c8da0d959e62.zip
configure: reconfigure: spaces in arguments
* configure (cmdline): We are missing the simple case when the argument contains spaces or tabs, and no quotes or special characters. This causes a badly formatted command line in reconfigure in common situations like --opt-flags="-O3 -W".
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index d3315f95..4e53f0ab 100755
--- a/configure
+++ b/configure
@@ -103,6 +103,9 @@ for arg in "$0" ${@+"$@"} ; do
*'"'* | *['$*?[(){};&|<>#']* | '~'* )
cmdline="$cmdline'$arg'"
;;
+ *' '* | *' '* )
+ cmdline="$cmdline\"$arg\""
+ ;;
* )
cmdline="$cmdline$arg"
;;