summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-05-23 10:05:31 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-05-23 10:05:31 +0200
commit16b34ac99b135d6cd6c8c2cf1e277ee3b867d9ac (patch)
tree3250261b453a9799af4b79898c22199c9b593246 /tests
parent504656bf1e13c99bc065d9c64476a8fa30f56967 (diff)
downloadgnulib-16b34ac99b135d6cd6c8c2cf1e277ee3b867d9ac.tar.gz
Fix output redirection buglet in init.sh.
* tests/init.sh: Fix redirection of stderr.
Diffstat (limited to 'tests')
-rw-r--r--tests/init.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/init.sh b/tests/init.sh
index e23aa54be1..ef0957c1d8 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -143,9 +143,9 @@ framework_failure_() { warn_ "$ME_: set-up failure: $@"; Exit 1; }
# a partition, or to undo any other global state changes.
cleanup_() { :; }
-if ( diff --version < /dev/null 2>&1 | grep GNU ) 2>&1 > /dev/null; then
+if ( diff --version < /dev/null 2>&1 | grep GNU ) > /dev/null 2>&1; then
compare() { diff -u "$@"; }
-elif ( cmp --version < /dev/null 2>&1 | grep GNU ) 2>&1 > /dev/null; then
+elif ( cmp --version < /dev/null 2>&1 | grep GNU ) > /dev/null 2>&1; then
compare() { cmp -s "$@"; }
else
compare() { cmp "$@"; }