Browse code

configure: fix sh_quote function

Non-matching lists start with ! instead of the usual ^ in shell
patterns.

Originally committed as revision 24550 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2010/07/28 01:59:42
Showing 1 changed files
... ...
@@ -306,7 +306,7 @@ c_escape(){
306 306
 
307 307
 sh_quote(){
308 308
     v=$(echo "$1" | sed "s/'/'\\\\''/g")
309
-    test "x$v" = "x${v#*[^A-Za-z0-9_/.+-]}" || v="'$v'"
309
+    test "x$v" = "x${v#*[!A-Za-z0-9_/.+-]}" || v="'$v'"
310 310
     echo "$v"
311 311
 }
312 312