diff --git a/configure b/configure index 898000438f..30358391de 100755 --- a/configure +++ b/configure @@ -304,7 +304,7 @@ c_escape(){ sh_quote(){ v=$(echo "$1" | sed "s/'/'\\\\''/g") - test "$v" = "${v#*[ |&;<>()$\`\\\"\'*?\[\]#~=%]}" || v="'$v'" + test "x$v" = "x${v#*[^A-Za-z0-9_/.+-]}" || v="'$v'" echo "$v" }