Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 1 | # See whether or not we can use `diff -a' |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 2 | #( diff -a ./printf.tests ./printf.tests >/dev/null 2>&1 ) && AFLAG=-a |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 3 | |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 4 | # use cat -v (and assume it's there) to make control chars visible |
| 5 | ${THIS_SH} ./printf.tests 2>&1 | cat -v > /tmp/xx |
| 6 | #diff $AFLAG /tmp/xx printf.right && rm -f /tmp/xx |
| 7 | diff /tmp/xx printf.right && rm -f /tmp/xx |