Re: Time to change pg_regress diffs to unified by default?
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>, pgsql-hackers@postgresql.org
Date: 2017-04-07T02:54:17Z
Lists: pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes: > I think one problem is that diff -u is not as portable as diff -c. For > example, the HP-UX 11 man page of diff doesn't list it. FWIW, I can confirm that HPUX 10.20's diff hasn't got it. That would not affect gaur/pademelon, if we make this change, because I installed GNU diffutils on that machine a decade or two ago. It might be a bigger issue for the other HPUX critters though. Some other data points: * POSIX 2008 requires diff -u. * SUS v2 (POSIX 1997) does not. * My other pet dinosaur, prairiedog (macOS 10.4 something), has it. regards, tom lane
Commits
-
pg_regress: Don't use absolute paths for the diff
- 1995552deb54 12.0 landed
-
Use standard diff separator for regression.diffs
- 8f27a14b1bd3 12.0 landed