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
commit7349b5de069f831d23119f6fc0124a0b8daa4401 (patch)
tree248ce5bbfd55ae408e2bc82e20f3f017c2ee4dc7
parent7e5dab1f846000c633baaf0642362ad79eb4f32e (diff)
downloadtxr-7349b5de069f831d23119f6fc0124a0b8daa4401.tar.gz
txr-7349b5de069f831d23119f6fc0124a0b8daa4401.tar.bz2
txr-7349b5de069f831d23119f6fc0124a0b8daa4401.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"
;;