From 4af5eabfc04010c39947d3ae9763ae931d63c191 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 14 Jun 2011 15:33:23 +0200 Subject: [PATCH] init.sh: give more portable redirection-related advice in a comment * tests/init.sh (stderr_fileno_): Update the advice in comments. See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488 for lots of discussion. Stefano Lattarini suggested the solution of putting "9>&2" after the command. Reported by Bruno Haible. --- ChangeLog | 8 ++++++++ tests/init.sh | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2ef5abc1e..0669e49ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-06-14 Jim Meyering + + init.sh: give more portable redirection-related advice in a comment + * tests/init.sh (stderr_fileno_): Update the advice in comments. + See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488 + for lots of discussion. Stefano Lattarini suggested the solution + of putting "9>&2" after the command. Reported by Bruno Haible. + 2011-06-13 Bruno Haible locale-zh: Reject zh_CN.GB18030 locale on Solaris 8. diff --git a/tests/init.sh b/tests/init.sh index 3ebc70f6e..0da6c1e32 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -68,8 +68,8 @@ Exit () { set +e; (exit $1); exit $1; } # Print warnings (e.g., about skipped and failed tests) to this file number. # Override by defining to say, 9, in init.cfg, and putting say, -# "export ...ENVVAR_SETTINGS...; exec 9>&2; $(SHELL)" in the definition -# of TESTS_ENVIRONMENT in your tests/Makefile.am file. +# export ...ENVVAR_SETTINGS...; $(SHELL) 9>&2 +# in the definition of TESTS_ENVIRONMENT in your tests/Makefile.am file. # This is useful when using automake's parallel tests mode, to print # the reason for skip/failure to console, rather than to the .log files. : ${stderr_fileno_=2} -- 2.11.0