fd 3 is redirected in fate-run.sh and that redirection is assumed to
remain in place by other regression test scripts called from there.
However, POSIX says[1] that it is undefined if such fds remain open
or not when the shell invokes other utilities.

[1] 
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#exec
---
 tests/regression-funcs.sh |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/regression-funcs.sh b/tests/regression-funcs.sh
index ce5aee8..6c3c38b 100755
--- a/tests/regression-funcs.sh
+++ b/tests/regression-funcs.sh
@@ -32,6 +32,8 @@ trap 'rm -f -- $cleanfiles' EXIT
 mkdir -p "$datadir"
 mkdir -p "$outfile"
 
+exec 3>&2
+
 [ "${V-0}" -gt 0 ] && echov=echov || echov=:
 
 echov(){
-- 
1.7.9.5

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to