summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-10-02 18:18:34 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-10-02 18:18:34 -0700
commit2c5b6fba35b07abeb8bfb0ce1f16ffc8701476ac (patch)
tree4aeaa63f3f6a24def472e4417272573561dcae44
parent711a36f67049b6a1be74c1d0b179f1f898ff36c0 (diff)
downloadtxr-2c5b6fba35b07abeb8bfb0ce1f16ffc8701476ac.tar.gz
txr-2c5b6fba35b07abeb8bfb0ce1f16ffc8701476ac.tar.bz2
txr-2c5b6fba35b07abeb8bfb0ce1f16ffc8701476ac.zip
configure: quote more characters in cmdline
* configure: When calculating the cmdline variable from the positional parameters, there are more shell-special characters that require quoting: parentheses, braces, redirection operators, the semicolon and the hash comment.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index abd3a425..92e8715d 100755
--- a/configure
+++ b/configure
@@ -100,7 +100,7 @@ for arg in "$0" ${@+"$@"} ; do
;;
esac
;;
- *'"'* | *['$*?[']* | '~'* )
+ *'"'* | *['$*?[(){};&|<>#']* | '~'* )
cmdline="$cmdline'$arg'"
;;
* )