[FFmpeg-devel] [PATCH] fate: disable globbing when calling shell functions.

Nicolas George nicolas.george at normalesup.org
Wed Jan 2 23:44:07 CET 2013


Le tridi 13 nivôse, an CCXXI, Nicolas George a écrit :
> 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).

> +# Disable globbing: command arguments may contain globbing characters and
> +# must be kept verbatim
> +set -f

I forgot to mention: it works on Debian with /bin/sh -> dash, and I have no
doubt it works with bash too, but beyond that I have mostly no way of
testing. All I can say is that "set -f" was already in Single Unix v2 in
1998; hopefully since that time all supported platforms will have it.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130102/8dcf1ae5/attachment.asc>


More information about the ffmpeg-devel mailing list