xzdiff does not preserve diff's return value

Bug #816325 reported by Pallinger Péter
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xz-utils (Ubuntu)
New
Undecided
Unassigned

Bug Description

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).

xzcmp behaves the same way, as they are the same program

summary: - xzdiff does not reserve diff's return value
+ xzdiff does not preserve diff's return value
tags: added: xzcmp
description: updated
Revision history for this message
Pallinger Péter (pp-publikus) wrote :

Simple (but probably not very elegant) fix for xzdiff/xzcmp
Now it passes the above test.

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.