init.sh: give more portable redirection-related advice in a comment
authorJim Meyering <meyering@redhat.com>
Tue, 14 Jun 2011 13:33:23 +0000 (15:33 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 14 Jun 2011 13:40:43 +0000 (15:40 +0200)
* 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
tests/init.sh

index 2ef5abc..0669e49 100644 (file)
--- 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.
index 3ebc70f..0da6c1e 100644 (file)
@@ -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}