Skip to content

Commit

Permalink
Add -a to diff in RunGrepTest
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipHazel committed Aug 10, 2022
1 parent b980fc6 commit 52fb771
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RunGrepTest
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ 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"

# Add a -a (always treat as text) if available. This was added in an attempt
# to get more detail from an Alpine Linux test failure on GitHub.

$cf -a /dev/null /dev/null 2>/dev/null && cf="$cf -a"

# Some tests involve NUL characters. It seems impossible to handle them easily
# in many operating systems. An earlier version of this script used sed to
# translate NUL into the string ZERO, but this didn't work on Solaris (aka
Expand Down

0 comments on commit 52fb771

Please sign in to comment.