mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
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
This commit is contained in:
parent
a20df85886
commit
d72c981c30
2
configure
vendored
2
configure
vendored
@ -306,7 +306,7 @@ c_escape(){
|
||||
|
||||
sh_quote(){
|
||||
v=$(echo "$1" | sed "s/'/'\\\\''/g")
|
||||
test "x$v" = "x${v#*[^A-Za-z0-9_/.+-]}" || v="'$v'"
|
||||
test "x$v" = "x${v#*[!A-Za-z0-9_/.+-]}" || v="'$v'"
|
||||
echo "$v"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user