summaryrefslogtreecommitdiff
path: root/RunGrepTest
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-08-26 16:17:55 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-08-26 16:17:55 +0000
commit583cb7af384d4ee223eb19b3838a3c5bc849b997 (patch)
tree54afa6307f64c6257f82a6aeca42b78020dbb1c7 /RunGrepTest
parentadb57cee9416b491993c440adf20534d4e571a50 (diff)
downloadpcre-583cb7af384d4ee223eb19b3838a3c5bc849b997.tar.gz
Style tidies to some scripts.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1016 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'RunGrepTest')
-rwxr-xr-xRunGrepTest10
1 files changed, 4 insertions, 6 deletions
diff --git a/RunGrepTest b/RunGrepTest
index e462f35..493fc73 100755
--- a/RunGrepTest
+++ b/RunGrepTest
@@ -40,12 +40,10 @@ $pcregrep -V
# that lacks a -u option. Try to deal with this; better do the test for the -b
# option as well.
-cf="diff -ub"
-if diff -u /dev/null /dev/null; then
- if diff -ub /dev/null /dev/null; then cf="diff -ub"; else cf="diff -u"; fi
-else
- if diff -b /dev/null /dev/null; then cf="diff -b"; else cf="diff"; fi
-fi
+cf="diff"
+diff -b /dev/null /dev/null 2>/dev/null && cf="diff -b"
+diff -u /dev/null /dev/null 2>/dev/null && cf="diff -u"
+diff -ub /dev/null /dev/null 2>/dev/null && cf="diff -ub"
# If PCRE has been built in a directory other than the source directory, and
# this test is being run from "make check" as usual, then $srcdir will be