|
From: | Paul Eggert |
Subject: | [bug-diffutils] bug#16608: bug#16608: Bug#737180: diffutils: diff exit status is 2 instead of 1 on binary files that differ (fwd) |
Date: | Fri, 31 Jan 2014 17:21:42 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Vincent Lefevre wrote:
POSIX actually specifies the behavior:
Ouch, right you are. I recall reading POSIX and coming to the opposite conclusion, that the behavior was not specified. Perhaps this was long ago and input files were required to be text files.
Anyway, since it's incompatible with other 'diff' implementations and with POSIX, and since there's not a particularly strong reason to differ, let's change to be compatible. I applied the attached patch to the savannah master and am taking the liberty of marking this as done; please give it a try.
0001-diff-exit-with-status-1-not-2-when-binary-files-diff.patch
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |