[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/3] configure: quote command line arguments in config.status
From: |
Paolo Bonzini |
Subject: |
[PATCH 1/3] configure: quote command line arguments in config.status |
Date: |
Sun, 13 Sep 2020 12:05:32 +0200 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
configure | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 53723ace57..beae010e39 100755
--- a/configure
+++ b/configure
@@ -89,6 +89,10 @@ printf " '%s'" "$0" "$@" >> config.log
echo >> config.log
echo "#" >> config.log
+quote_sh() {
+ printf "'%s'" "$(echo "$1" | sed "s,','\\',")"
+}
+
print_error() {
(echo
echo "ERROR: $1"
@@ -8061,7 +8065,7 @@ preserve_env WINDRES
printf "exec" >>config.status
for i in "$0" "$@"; do
- test "$i" = --skip-meson || printf " '%s'" "$i" >>config.status
+ test "$i" = --skip-meson || printf " %s" "$(quote_sh $i)" >>config.status
done
echo ' "$@"' >>config.status
chmod +x config.status
--
2.26.2
- [RFC PATCH 0/3] Automatically convert configure options to meson build options, Paolo Bonzini, 2020/09/13
- [PATCH 1/3] configure: quote command line arguments in config.status,
Paolo Bonzini <=
- [PATCH 2/3] configure: early test for Python, Paolo Bonzini, 2020/09/13
- [PATCH 3/3] configure: automatically parse command line for meson -D options, Paolo Bonzini, 2020/09/13
- Re: [RFC PATCH 0/3] Automatically convert configure options to meson build options, Yonggang Luo, 2020/09/13
- Re: [RFC PATCH 0/3] Automatically convert configure options to meson build options, Daniel P . Berrangé, 2020/09/14
- Re: [RFC PATCH 0/3] Automatically convert configure options to meson build options, Stefan Hajnoczi, 2020/09/14