diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-10-12 11:11:23 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-10-12 19:46:13 +0200 |
commit | 5e2baecb26cede9f42456da9593bd0f15af823bb (patch) | |
tree | d44d73905787273ee3081d393d563d56664830fc | |
parent | 366adeb73d80cbe8ed4b730c46ed7864cf10eb73 (diff) | |
download | diffutils-5e2baecb26cede9f42456da9593bd0f15af823bb.tar.gz |
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.
-rw-r--r-- | tests/Makefile.am | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 9835ab6..9952d67 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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) |