changeset 14921:830897146980

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.
author Jim Meyering <meyering@redhat.com>
date Tue, 14 Jun 2011 15:33:23 +0200
parents 530d72c1d0c2
children 75807d4b7597
files ChangeLog tests/init.sh
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-06-14  Jim Meyering  <meyering@redhat.com>
+
+	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  <bruno@clisp.org>
 
 	locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -68,8 +68,8 @@
 
 # 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}