diff options
author | Jim Meyering <meyering@redhat.com> | 2011-11-13 21:17:31 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-11-13 21:18:36 +0100 |
commit | e34092a7d59dd2b452ad27b172c37966f7e16cc2 (patch) | |
tree | 6b725dd9391442dad808940a3393289721b130ca /tests/init.sh | |
parent | f09c9629813a71310b70ed401051ae533a69763c (diff) | |
download | grep-e34092a7d59dd2b452ad27b172c37966f7e16cc2.tar.gz |
maint: update bootstrap and init.sh from gnulib
* tests/init.sh: Update from gnulib.
* bootstrap: Likewise.
Diffstat (limited to 'tests/init.sh')
-rw-r--r-- | tests/init.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/init.sh b/tests/init.sh index 460937de..373d9d4f 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -221,8 +221,10 @@ export MALLOC_PERTURB_ # a partition, or to undo any other global state changes. cleanup_ () { :; } -if ( diff --version < /dev/null 2>&1 | grep GNU ) > /dev/null 2>&1; then +if ( diff -u "$0" "$0" < /dev/null ) > /dev/null 2>&1; then compare () { diff -u "$@"; } +elif ( diff -c "$0" "$0" < /dev/null ) > /dev/null 2>&1; then + compare () { diff -c "$@"; } elif ( cmp --version < /dev/null 2>&1 | grep GNU ) > /dev/null 2>&1; then compare () { cmp -s "$@"; } else |