init.sh: do not emit simulated diff output to stderr
authorJim Meyering <meyering@redhat.com>
Thu, 22 Dec 2011 15:04:36 +0000 (16:04 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 23 Dec 2011 09:47:18 +0000 (10:47 +0100)
* tests/init.sh (compare_dev_null_): Print to stdout, not stderr.

ChangeLog
tests/init.sh

index e673fe0..5545a2c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-22  Jim Meyering  <meyering@redhat.com>
+
+       init.sh: do not emit simulated diff output to stderr
+       * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
+
 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
 
        .gitignore: ignore gnulib.dvi and regex.info
index 1e1f0e3..43f5089 100644 (file)
@@ -242,13 +242,13 @@ compare_dev_null_ ()
 
   if test "x$1" = x/dev/null; then
     test -s "$2" || return 0
-    { emit_diff_u_header_ "$@"; sed 's/^/+/' -- "$2"; } >&2
+    emit_diff_u_header_ "$@"; sed 's/^/+/' -- "$2"
     return 1
   fi
 
   if test "x$2" = x/dev/null; then
     test -s "$1" || return 0
-    { emit_diff_u_header_ "$@"; sed 's/^/-/' -- "$1"; } >&2
+    emit_diff_u_header_ "$@"; sed 's/^/-/' -- "$1"
     return 1
   fi