diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-01-31 17:15:26 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-01-31 17:15:54 -0800 |
commit | bc4b4b2bbf699267bab167af0484336780791953 (patch) | |
tree | f559a250090596a0a77361e86c271bb04fd1427e /NEWS | |
parent | 1875453ee6e1021d67c6856c46e7024bcecdbea8 (diff) | |
download | diffutils-bc4b4b2bbf699267bab167af0484336780791953.tar.gz |
diff: exit with status 1, not 2, when binary files differ
Problem reported by Vincent Lefevre in <http://bugs.gnu.org/16608>.
* NEWS:
* doc/diffutils.texi (Binary, Invoking diff): Document this.
* src/analyze.c (briefly_report): Return void, not int.
All uses changed. Do not futz with exit status. Simplify.
* tests/binary: Adjust to match new behavior.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -4,6 +4,9 @@ GNU diffutils NEWS -*- outline -*- ** Bug fixes + When binary files differ, diff now exits with status 1 as POSIX requires. + Formerly it exited with status 2. + Unless the --ignore-file-name-case option is used, diff now considers file names to be equal only if they are byte-for-byte equivalent. This fixes a bug where diff in an English locale might |