Values returned by colordiff and diff differ
Bug #449893 reported by
optim
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
colordiff (Debian) |
Fix Released
|
Unknown
|
|||
colordiff (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: colordiff
Colordiff returns success (0) even when files differ.
1) Ubuntu Hardy.
2) Tried more versions. I found the bug in 1.0.6-2 (Hardy) and 1.0.7-2 (Intrepid and Jaunty). 1.0.9-1 (Karmic) behaves correctly.
3) Correct behaviour in 1.0.9-1
$ echo a > a; echo b > b;
$ diff -q a b; echo "$?"; colordiff -q a b; echo "$?"
Files a and b differ
1
Files a and b differ
1
4) Behaviour in 1.0.6-2 and 1.0.7-2
$ echo a > a; echo b > b;
$ diff -q a b; echo "$?"; colordiff -q a b; echo "$?"
Files a and b differ
1
Files a and b differ
0
Changed in colordiff (Ubuntu): | |
status: | New → Triaged |
Changed in colordiff (Debian): | |
status: | Unknown → Fix Released |
Changed in colordiff (Ubuntu): | |
status: | Triaged → Fix Released |
To post a comment you must log in.
You have identified a bug which was fixed in colordiff 1.0.9 - see http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 470835
In fact, in your report, you note that the problem does not exist in the most recent version of colordiff. This recent version is included in Karmic. Given that this is the case, I don't believe anything else is required here.