From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 22 13:01:33 2021 Received: (at submit) by debbugs.gnu.org; 22 Aug 2021 17:01:33 +0000 Received: from localhost ([127.0.0.1]:39740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHqqi-0004ly-FF for submit@debbugs.gnu.org; Sun, 22 Aug 2021 13:01:33 -0400 Received: from lists.gnu.org ([209.51.188.17]:39664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHo4W-0002Oc-NK for submit@debbugs.gnu.org; Sun, 22 Aug 2021 10:03:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHo4W-0002MY-G8 for bug-diffutils@gnu.org; Sun, 22 Aug 2021 10:03:36 -0400 Received: from vmi427935.contaboserver.net ([173.249.33.206]:35149 helo=mail.onionmail.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHo4U-0007zK-Kc for bug-diffutils@gnu.org; Sun, 22 Aug 2021 10:03:36 -0400 Received: from localhost by mail.onionmail.org (ZoneMTA) with API id 17b6e2c57720002f9b.001 for ; Sun, 22 Aug 2021 14:03:24 +0000 X-Zone-Loop: 6853401ad81c6517518444340836d7d1dea92a55eebb Content-Type: multipart/alternative; boundary="--_NmP-0e225cbb0d367853-Part_1" From: YruNlsr6371bDg To: bug-diffutils@gnu.org Subject: GNU diff '--recursive' should continue on "input/output error". GNU cmp should have missing '--recursive' option. Date: Sun, 22 Aug 2021 14:03:24 +0000 Message-ID: <96013e1c-3057-536f-8807-9db2d91966e5@onionmail.org> MIME-Version: 1.0 Received-SPF: pass client-ip=173.249.33.206; envelope-from=fhdpo2zdkgrgktctxxumrxd2ayhtdf@onionmail.org; helo=mail.onionmail.org X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FROM_LOCAL_NOVOWEL=0.5, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 22 Aug 2021 13:01:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) ----_NmP-0e225cbb0d367853-Part_1 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable These maybe 2 different bugs, but they both deal with recursion, so both = are reported here. (1) Hard-disk-drives, Solid-state-drives, flash media,= etc. might have errors in certain blocks/sectors. But this does not mean that diff, when running in '--recursive' mode, = should stop after encountering the first "input/output error". At the very least, there should be a '--continue-on-error' option, to make = diff proceed to the next file comparison(s) when operating in '--recursive'= mode. (2) cmp does not have a '--recursive' option analagous to diff - = and it should - as there might be a need to compare 2 directories of binary= files. ----_NmP-0e225cbb0d367853-Part_1 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

These maybe 2 different bugs, but they both deal with recursion, so both= are reported here.


(1)
Hard-disk-drives, Solid-state-drives,= flash media, etc. might have errors in certain blocks/sectors.

But = this does not mean that diff, when running in '--recursive' mode, should = stop after encountering the first "input/output error".

At the very = least, there should be a '--continue-on-error' option, to make diff proceed= to the next file comparison(s) when operating in '--recursive' mode.=


(2)
cmp does not have a '--recursive' option analagous to = diff - and it should - as there might be a need to compare 2 directories of= binary files.

----_NmP-0e225cbb0d367853-Part_1--