Package: diffutils
Version: 1:3.3-1
Severity: normal

When diffing binary files that differ, e.g.

$ diff /usr/share/doc/diffutils/changelog.Debian.gz 
/usr/share/doc/diffutils/changelog.gz
Binary files /usr/share/doc/diffutils/changelog.Debian.gz and 
/usr/share/doc/diffutils/changelog.gz differ
zsh: exit 2     diff /usr/share/doc/diffutils/changelog.Debian.gz

I get exit status 2 instead of 1.

The diff(1) man page says:

  Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.

We are in the case where the inputs are different, so that the
exit status should be 1.

Because of this bug, "svn diff --force --diff-cmd diff" fails on
binary files (ditto on more useful cases in practice, where a diff
wrapper is used to recognize some binary files, using the default
diff behavior as a fallback).

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages diffutils depends on:
ii  libc6  2.17-97

diffutils recommends no packages.

Versions of packages diffutils suggests:
ii  diffutils-doc  1:3.3-1
ii  wdiff          1.2.1-2

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to