From 835eb2a789b734be42b3e3479fe7c8da0d959e62 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 21 Feb 2021 15:50:13 -0800 Subject: 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". --- configure | 3 +++ 1 file changed, 3 insertions(+) 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" ;; -- cgit v1.2.3