Commit f29be470 authored by Måns Rullgård's avatar Måns Rullgård

configure: make sh_quote() more robust

Originally committed as revision 24376 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent fd7242dd
...@@ -304,7 +304,7 @@ c_escape(){ ...@@ -304,7 +304,7 @@ c_escape(){
sh_quote(){ sh_quote(){
v=$(echo "$1" | sed "s/'/'\\\\''/g") v=$(echo "$1" | sed "s/'/'\\\\''/g")
test "$v" = "${v#*[ |&;<>()$\`\\\"\'*?\[\]#~=%]}" || v="'$v'" test "x$v" = "x${v#*[^A-Za-z0-9_/.+-]}" || v="'$v'"
echo "$v" echo "$v"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment