summaryrefslogtreecommitdiffstats
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-03-10 09:23:33 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-03-10 09:23:33 +0000
commit9d178d3b690a0aab44d754c65ccf1d5567f9f7c5 (patch)
treeba0c636ee36a6e8640fb0d7cdaba129ad47e1395 /regress
parent1ddd5cf62b04cb63075ea1b42e2bbe230c98306b (diff)
downloadmandoc-9d178d3b690a0aab44d754c65ccf1d5567f9f7c5.tar.gz
Automatically detect whether diff(1) supports the -a option.
Useful on illumos and on Oracle Solaris, where it doesn't. Patch written based on a report from Sevan Janiyan.
Diffstat (limited to 'regress')
-rwxr-xr-xregress/regress.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/regress/regress.pl b/regress/regress.pl
index b9fb849b..dd79eb0c 100755
--- a/regress/regress.pl
+++ b/regress/regress.pl
@@ -27,6 +27,7 @@ use IPC::Open3 qw(open3);
# Define this at one place such that it can easily be changed
# if diff(1) does not support the -a option.
my @diff = qw(diff -au);
+system @diff, '/dev/null', '/dev/null' and @diff = qw(diff -u);
# --- utility functions ------------------------------------------------