mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fate: disable globbing when calling shell functions.
Some of the filters tests use globbing characters, especially brackets for filter pad labels. While most of these strings are way too complicated to ever match an existing file name and are therefore kept unchanged in the command line (an old misfeature of the shell language that happens to be convenient here), at least one use is simple enough to match random files lying in the current directory. If that happens, the string, that was meant to be kept verbatim, is replaced by the file name, and that causes the test to fail (or worse).
This commit is contained in:
parent
1894302a44
commit
be01d1a24d
@ -166,6 +166,10 @@ lavfitest(){
|
|||||||
|
|
||||||
mkdir -p "$outdir"
|
mkdir -p "$outdir"
|
||||||
|
|
||||||
|
# Disable globbing: command arguments may contain globbing characters and
|
||||||
|
# must be kept verbatim
|
||||||
|
set -f
|
||||||
|
|
||||||
exec 3>&2
|
exec 3>&2
|
||||||
eval $command >"$outfile" 2>$errfile
|
eval $command >"$outfile" 2>$errfile
|
||||||
err=$?
|
err=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user