Comment 0 for bug 816325

Revision history for this message
Pallinger Péter (pp-publikus) wrote : xzdiff does not reserve diff's return value

Description: Ubuntu 11.04
Release: 11.04
Architecture: x86_64
package version: 5.0.0-2

It always returns 0 instead of 1.

Simple way to check:
cp /etc/hosts /etc/hostname /tmp/
cd /tmp
diff -q host* ; echo $?
xz host*
xzdiff -q host* ; echo $?

I could not create a simple test case for 2 (this would be a case where diff fails due to an error while xzdiff can run correctly, i.e. unreadable xz files do not qualify).