tests: use more portable fd redirection in TESTS_ENVIRONMENT

* tests/Makefile.am (TESTS_ENVIRONMENT): Redirection with `exec 9>&2'
is not portable to various Korn shells, and to (at least) HP-UX 11
/bin/sh.  Use a more portable idiom.
See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488 for
lots of discussion.
This commit is contained in:
Stefano Lattarini 2011-10-12 11:11:23 +02:00 committed by Jim Meyering
parent 366adeb73d
commit 5e2baecb26

View File

@ -21,7 +21,6 @@ EXTRA_DIST = \
TESTS_ENVIRONMENT = \
tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.; \
TMPDIR=$$tmp__; export TMPDIR; \
exec 9>&2; \
export \
VERSION='$(VERSION)' \
abs_top_builddir='$(abs_top_builddir)' \
@ -40,7 +39,7 @@ TESTS_ENVIRONMENT = \
PREFERABLY_POSIX_SHELL='$(PREFERABLY_POSIX_SHELL)' \
REPLACE_GETCWD=$(REPLACE_GETCWD) \
PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \
;
; 9>&2
LOG_COMPILER= $(SHELL)