From unknown Sat Sep 13 21:03:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#79407 <79407@debbugs.gnu.org> To: bug#79407 <79407@debbugs.gnu.org> Subject: Status: to-file option not working any more? Reply-To: bug#79407 <79407@debbugs.gnu.org> Date: Sun, 14 Sep 2025 04:03:15 +0000 retitle 79407 to-file option not working any more? reassign 79407 diffutils submitter 79407 Mandar Mitra severity 79407 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 04:44:41 2025 Received: (at submit) by debbugs.gnu.org; 8 Sep 2025 08:44:41 +0000 Received: from localhost ([127.0.0.1]:49354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uvXUO-0000Em-TU for submit@debbugs.gnu.org; Mon, 08 Sep 2025 04:44:41 -0400 Received: from lists.gnu.org ([2001:470:142::17]:55246) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uvXUK-0000E9-Tv for submit@debbugs.gnu.org; Mon, 08 Sep 2025 04:44:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uvXUF-0007sk-1N for bug-diffutils@gnu.org; Mon, 08 Sep 2025 04:44:31 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uvXU7-0005FM-MT for bug-diffutils@gnu.org; Mon, 08 Sep 2025 04:44:30 -0400 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2518a38e7e4so17408065ad.1 for ; Mon, 08 Sep 2025 01:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757321053; x=1757925853; darn=gnu.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=h/X2ppLB780mj5QrlU4j6f0/FRToO7EuYH3xXGDF0t8=; b=ijh71DsmD2ei8MDHKO7Smnjoz9CgKd1hRThQlJRGNQ00AJTkmkrjkzojQ5UurB69Gb NjsfL9MgAhKhsMMhvjE5RwxcW0gA3cbLxN1AH9qp8qWAL7SoMDKgl+NhhOhu3ALH34Aj N1puQ14lB3ja7dHpeoouknmwToSWT5cuqtPtaVWPfa12+RiBFiCB8Ie0Fy60g7g1f4w2 w8ztZZhVzv2YxFyEuxanQEubtzsXZJ5uxIDKkFcDKkEu7mZf8Xv0aJ3O5Ud1b4M49k69 HDkJ4xNDYnpCXC70tDKlCschBpy0CzfmfUNlTd6SrMJq4JhzhwLXUZaxVB9wvkC41h+h Ldww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757321053; x=1757925853; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=h/X2ppLB780mj5QrlU4j6f0/FRToO7EuYH3xXGDF0t8=; b=xTalZ5UOAniqZhlmI61OUc87FoCudGkBZGIkWA7ic+ikvYWDXRjLnEAGpkY/aru+ch jZXU3+WNG/r4FICAwPmEkmZsZk8q1GX1yp7mwmclmgKh2o9YSAkH5nawacMDR6vvD8hy QpvDSfu0XqEvAThbbwcuJPDuPbTlX5cO0Pf4ZgvUQDhy/soJ8Y6C9zDxmrRplB2U//HN 250M9TrwweChyAdZhD6CepmaG3vuVUNJuOcGOAocIIMOu5b3zm+r0O8QpCC8REqaP6Tl b3JZQIUeRWcUnS4A/SeaozTC0xQptI/vV+f08aHzC49nC1E2tO4xx9v+LgMBJbCwpuBy n7xA== X-Gm-Message-State: AOJu0YwY+T78nTkwK0EHeX6ERwvfUv1ejMf9y6K8yMqJaTE9WePUWDgn MyN5KDLLakdAWM09kvJ8kC4sTtYBiK2pAmXVeVEji8s5cVeOFMuubLxl1+wxdg== X-Gm-Gg: ASbGncsVlA//Rbdd5P1PPWNbuekVjZ4i2kfMKlERZKc4ONkMIwBqWTSfOO7lHT3Rr21 ykswSPPrFwfWatXExbK6D+KFwR0isJcsL5cnVtKOAxK6B+5PjQbnfeo0PpZ3Y1tepcdaDdLdbjD H+QlheenDzQz8nUS5VjaLyOqFHqjg/ti4dWdrNeFwIe4MR834/6p4rKRE73k0dDhsRlmcVvqsgM 4zNM/6qe5Z4aH6MIJgzaUbN0BglqpFLv2g3FGxUjoXiGOG5JRyDqzEijfkhITW2FvC7gOkgCABg VeUOKcL6WYlSVqmrSc5BkLRcM+rYYSAjdEJol0kCwlpvOn09Bjcsb1yue8wY1V6wgV2Couz6Hda LBRrzgOB5+pWMT/hIL0Dg8n0IQQ== X-Google-Smtp-Source: AGHT+IHJHuqq2RACsimAmywuh7zBdt+WQJo0WloqojiFYvwFCv/3cSm2li0EW+aiVRsq7fBmkMELFA== X-Received: by 2002:a17:903:234e:b0:248:f844:678f with SMTP id d9443c01a7336-24ceff455eamr181827325ad.30.1757321053296; Mon, 08 Sep 2025 01:44:13 -0700 (PDT) Received: from localhost ([2401:4900:3bd2:64fc:e75d:fd3d:a375:cbe]) by smtp.gmail.com with UTF8SMTPSA id d9443c01a7336-24c9304b790sm137208135ad.67.2025.09.08.01.44.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Sep 2025 01:44:12 -0700 (PDT) Date: Mon, 8 Sep 2025 14:14:08 +0530 From: Mandar Mitra To: bug-diffutils@gnu.org Subject: to-file option not working any more? Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=mandar.mitra@gmail.com; helo=mail-pl1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit 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: -0.0 (/) When I specify a directory with the --to-file option, and ask diff to compare multiple files with the corresponding files under the to-file directory, only the first file is diffed; a "No such file or directory" message is displayed for everything else. Example: $ /bin/diff -s --to-file=tmp/ 012018.pdf ben.pdf Files 012018.pdf and tmp/012018.pdf are identical /bin/diff: tmp/: No such file or directory But running diff separately on the two files works: $ /bin/diff -s --to-file=tmp/ 012018.pdf Files 012018.pdf and tmp/012018.pdf are identical $ /bin/diff -s --to-file=tmp/ ben.pdf Files ben.pdf and tmp/ben.pdf are identical I'm reasonably sure this used to work earlier as I expected, but a quick search did not find any related discussions / bug reports. Could someone kindly confirm whether this is a bug or incorrect understanding on my part? Many thanks, Mandar. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 09 00:06:43 2025 Received: (at 79407) by debbugs.gnu.org; 9 Sep 2025 04:06:43 +0000 Received: from localhost ([127.0.0.1]:54664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uvpcw-0006h5-F4 for submit@debbugs.gnu.org; Tue, 09 Sep 2025 00:06:43 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]:54311) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uvpcq-0006ev-UP for 79407@debbugs.gnu.org; Tue, 09 Sep 2025 00:06:38 -0400 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-b042cc3954fso871234466b.0 for <79407@debbugs.gnu.org>; Mon, 08 Sep 2025 21:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757390788; x=1757995588; darn=debbugs.gnu.org; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=9Xkeg9EV/bdvXMHyWTzroxDeo08aujJkFg8CW1mWW+Y=; b=IkrO+LBk1WxSWjhxFtrE4up5AA++2BCdLQ0Vj92p+wEC554CRQcXmAPRaUQaC21P2G cDD1gpGH8yXANjDaGANVDm3FLUv/r7jJ5kS/FqosAeBtBv60mFPXAbDt9EzhJj+4qsrN ZrcozAD7ERzJ26xjBBh5ay28DbvNUCrS9ejwLkWT3iH4IkSY3fxYyaqpYho/7dHDbWn6 +okE6jjuFT3ojXod5dFCqFKTXfSk0TEjTX0BB5AwAQ2D5mc6tyyFhP6Ykgr0WCli195y EkBe/ZUI1zvr+ZTP3JnrOvIiPPRTVZDbVyvmcVKalS1iaCSIkjOXZ/NiQDNgnhjwH6V4 oXKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757390788; x=1757995588; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9Xkeg9EV/bdvXMHyWTzroxDeo08aujJkFg8CW1mWW+Y=; b=PLPRrk6+BLAzrWBGA6zkqN+rz4eFZelKDjqXqwmo89Pmh3+xofir9WEQLaDxYeqNXz dOVPjzWItw9A4gEg8lSAxr+obDKzFRbjnvnuzAePXAvV5/A25zcdOvdFviPKeu2f/qMv q/nG6ufOECtuTZHbimzJtkTYp1KWesRbSBRwuqNooFnCYGxLyVThKTAPTWrEmvulnmwA tc+7eumbkPSjdRvSdq/735pxbVGu1SIDk/g+DbLL29ZLUrkw+w8qv3mK+bRZNa18bNaL ugFfxZ4DXum92Tthya+G41OVXNlwc1aKM50FiuxYde/GOkNS1W53sJh2dcNT0G4xhkKU o7CA== X-Gm-Message-State: AOJu0YxvCoLo9UYlgnvBQIBZZkFMyOPRNLU+hNfjT6c3lw+JdoFHxYqG 6Nf10Y55SB2gVbVdSJ/NzSWfEPxrJseDmIYYc172ef5aJRnqkvHInk94t6oDj6NJEsLdXbEY701 24a3qBoOAbr8rAGh7w4qbVa+gapU0uKop7/RP X-Gm-Gg: ASbGnctCiQxf2z28xkuKKtuX/Lg7f0Vnd20Kh4zP/bH3H0ZLSLutD2lLFZKInNNuBg/ 81EIWkxfYaSdd3kV9zGSlRPhQg5lFt28p/EAXfaboxG+9ZIE6Bjzwruojnr+aBjhhMdxdhJ3VAn l9fvR5wl9y2H5ZTsboCNFfdHsaWwU6GfOnjmbWxo6W+ORzIVrFOiILyX9LmUAuj1y6Uv/tLbABm QulcbjyBY3xeP4= X-Google-Smtp-Source: AGHT+IHH9gOelK0mAO8N8cNCka87VSJrwW3Tx9jdrg9fL72ghf4ukVGFDzid1WmmythUBRYSTHH3JfLjFW3RVN17HV8= X-Received: by 2002:a17:907:7f21:b0:b04:5b3d:c305 with SMTP id a640c23a62f3a-b04b1446d7amr976924966b.17.1757390788105; Mon, 08 Sep 2025 21:06:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Robert Webb Date: Mon, 8 Sep 2025 21:06:11 -0700 X-Gm-Features: AS18NWApaQICjttXEI6ofwKzXZ594XTpDtB4q9-7i4zgkUDH4DPDAfa7oWKC1x4 Message-ID: Subject: Re: [bug-diffutils] bug#79407: to-file option not working any more? Content-Type: multipart/mixed; boundary="000000000000a85f23063e566d16" X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon, Sep 8, 2025 at 6:12 AM Mandar Mitra wrote: > > When I specify a directory with the --to-file option, and ask diff to compare multiple files with the corresponding files under the to-file d [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:62c listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ro.webbdg[at]gmail.com) 1.2 MISSING_HEADERS Missing To: header 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Debbugs-Envelope-To: 79407 Cc: 79407@debbugs.gnu.org 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: 0.2 (/) --000000000000a85f23063e566d16 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Sep 8, 2025 at 6:12=E2=80=AFAM Mandar Mitra wrote: > > When I specify a directory with the --to-file option, and ask diff to com= pare multiple files with the corresponding files under the to-file director= y, only the first file is diffed; a "No such file or directory" message is = displayed for everything else. > > [...] > I'm reasonably sure this used to work earlier as I expected, but a quick = search did not find any related discussions / bug reports. > Could someone kindly confirm whether this is a bug or incorrect understan= ding on my part? Mandar, I can confirm that the --to-file option as a directory results in only the first command-line file being diffed, with errors for the others. This script (also attached as 'runtest02.sh') shows it whether the first file is identical (b) or different (c): DIFFOPTS=3D'-s' diff --version ecmd() { printf '\n=3D=3D=3D %s\n' "$*" ;"$@" ;} setup() { test ! -d t || rm -r t && mkdir t || exit # Create 3 directories of 3 one-line files cd t && mkdir a b c || exit split --numeric-suffixes=3D1 -a 1 -l 1 --verbose -- - a/ <<'END' x xx xxx END split --numeric-suffixes=3D1 -a 1 -l 1 --verbose -- - b/ <<'END' x !! xxx END split --numeric-suffixes=3D1 -a 1 -l 1 --verbose -- - c/ <<'END' ! xx !!! END } setup ecmd diff ${DIFFOPTS} --to-file b -- a/3 a/2 a/1 ecmd diff ${DIFFOPTS} --to-file c -- a/3 a/2 a/1 And I just found out that an older version of diff handles this without err= ors. First the old one: $ runtest02.sh -s diff (GNU diffutils) 3.6 Packaged by openSUSE Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Paul Eggert, Mike Haertel, David Hayes, Richard Stallman, and Len Tower. creating file 'a/1' creating file 'a/2' creating file 'a/3' creating file 'b/1' creating file 'b/2' creating file 'b/3' creating file 'c/1' creating file 'c/2' creating file 'c/3' =3D=3D=3D diff -s --to-file b -- a/3 a/2 a/1 Files a/3 and b/3 are identical 1c1 < xx --- > !! Files a/1 and b/1 are identical =3D=3D=3D diff -s --to-file c -- a/3 a/2 a/1 1c1 < xxx --- > !!! Files a/2 and c/2 are identical 1c1 < x --- > ! And the new one: $ runtest02.sh -s diff (GNU diffutils) 3.12 Packaged by openSUSE Copyright (C) 2025 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Paul Eggert, Mike Haertel, David Hayes, Richard Stallman, and Len Tower. creating file 'a/1' creating file 'a/2' creating file 'a/3' creating file 'b/1' creating file 'b/2' creating file 'b/3' creating file 'c/1' creating file 'c/2' creating file 'c/3' =3D=3D=3D diff -s --to-file b -- a/3 a/2 a/1 Files a/3 and b/3 are identical diff: b: No such file or directory diff: b: No such file or directory =3D=3D=3D diff -s --to-file c -- a/3 a/2 a/1 1c1 < xxx --- > !!! diff: c: No such file or directory diff: c: No such file or directory --=20 Robert Webb --000000000000a85f23063e566d16 Content-Type: application/x-shellscript; name="runtest02.sh" Content-Disposition: attachment; filename="runtest02.sh" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_mfbzm5jt0 IyEvYmluL3NoCiMgYnVnL2RpZmZ1dGlscy90b19maWxlX2Rpcl9vbmx5X2RpZmZzX2ZpcnN0X2Zp bGUvcnVudGVzdDAyLnNoICAgMjAyNS0wOS0wOCAgIHJ3CgpESUZGT1BUUz0iJCoiCmRpZmYgLS12 ZXJzaW9uCgplY21kKCkgeyBwcmludGYgJ1xuPT09ICVzXG4nICIkKiIgIDsiJEAiIDt9CgpzZXR1 cCgpIHsKdGVzdCAhIC1kIHQgIHx8IHJtIC1yIHQgICYmIG1rZGlyIHQgIHx8IGV4aXQKIyBDcmVh dGUgMyBkaXJlY3RvcmllcyBvZiAzIG9uZS1saW5lIGZpbGVzCmNkIHQgICYmIG1rZGlyIGEgYiBj ICB8fCBleGl0CnNwbGl0IC0tbnVtZXJpYy1zdWZmaXhlcz0xIC1hIDEgLWwgMSAtLXZlcmJvc2Ug LS0gLSBhLyAgPDwnRU5EJwp4Cnh4Cnh4eApFTkQKc3BsaXQgLS1udW1lcmljLXN1ZmZpeGVzPTEg LWEgMSAtbCAxIC0tdmVyYm9zZSAtLSAtIGIvICA8PCdFTkQnCngKISEKeHh4CkVORApzcGxpdCAt LW51bWVyaWMtc3VmZml4ZXM9MSAtYSAxIC1sIDEgLS12ZXJib3NlIC0tIC0gYy8gIDw8J0VORCcK IQp4eAohISEKRU5ECn0KCnNldHVwCmVjbWQgZGlmZiAke0RJRkZPUFRTfSAtLXRvLWZpbGUgYiAt LSBhLzMgYS8yIGEvMQplY21kIGRpZmYgJHtESUZGT1BUU30gLS10by1maWxlIGMgLS0gYS8zIGEv MiBhLzEKCg== --000000000000a85f23063e566d16-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 09 02:48:54 2025 Received: (at 79407) by debbugs.gnu.org; 9 Sep 2025 06:48:54 +0000 Received: from localhost ([127.0.0.1]:56211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uvs9t-0001Xy-Py for submit@debbugs.gnu.org; Tue, 09 Sep 2025 02:48:54 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:61897) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uvs9q-0001XW-35 for 79407@debbugs.gnu.org; Tue, 09 Sep 2025 02:48:51 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-251fc032d1fso30628755ad.3 for <79407@debbugs.gnu.org>; Mon, 08 Sep 2025 23:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757400523; x=1758005323; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=BsaNzgxHDLmIwjLBkiFW9o2bgxbdnh9nKiKKIk9LT48=; b=L3k8/dmheN2BVq2lWhl6WaakA2DtJOeph1LbUf7PjG3eVzK9cmqbIyc+EbLx7PdaFJ 3PnkmbViIBSXo1c9wYTd3QiutElPq52DkL/BeaijqK0qwhhJpdJ81lWx3Jg6WRQb1kF7 KPXbFt9x205nm4Gj6XL6ifpm8yfsQvP+AJpJ5O12T0UoNmzDIzRmTefbExIwwVNg87FS JbtlvaYvNHD2d/KX5YMcV1swz5shSdiAAAoGudmY7pPknh/sW6VEgjqn4ZK8m60xw2Ix x/zjDTa9IM+HzJk+uEgmuNBwJc6sPT8TLhHBiI7PosdXclrJSn/PrbdhGju7wF8geZju AZpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757400523; x=1758005323; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BsaNzgxHDLmIwjLBkiFW9o2bgxbdnh9nKiKKIk9LT48=; b=gAFS3jgIcBDapLU+UEYvnRVZPhZYXMMCORNuPKznkgXbBUxUwgdMZyGQBY/s3xSJCP kiHINAw7pLpMnpGwr4K5cN7KquZwqyBa/bQ1r0MIJRrUfctnN7nBLwXOGfuNarS/vlGQ ccLreNNfR7362RaspANEjm1+6zzGYDd5LUhL+KRtPQR1JTgRL01ECjV7nCZgLfpA7DP/ ncH7ENsAeub2pfai30Z1Nwjp7qbArP+krrjpV6DQIsFjTZDQcEb6fcuD9Q13qvhj4nJp v/VHKl/vpt5xkCm7DFKt4PJhIkTmZWQtxPGoECmw4NXN7STA+wJhnlHFoBBo159dxgvO OPHQ== X-Gm-Message-State: AOJu0YwmXMGHm4Yf0OJcG8lgzCrmDsFN/fClEIYqslQ19inW3k9wrMPM wV406ta4uIP3tz53irceErm9NboBZVZnqR9C5OzkMWeIZisDY83ByPA3 X-Gm-Gg: ASbGncvKX3TK9zZcUpaVn3HjhJfDt6S5APuw6PEi3GT0bHAAdOwlNo506vpe7Xy9lW/ FSjiP4s2BUJjkmJ1V2aQCloihmo+5r5tLTQlPKaAo/kPuIrIu1O7Pzui87uGH08TElSmY1saAxJ 1MaVbgQs8ypD1EFb2l8ibSE3F6aPS3Jty5Xf9ZEbRRXIXCTmP05Wc38AO/b4vfP98B4PhOWiXwc uW8E7E8vcQooKnsVOkbgGnX7csrH3yX9xn4BKKKb4Xv4u/6Nb8m/ySZcdH5DlkQlqMZEOqr+L73 oa7FrPXXh0upPPR/+xMvSlTg35v7r391N1VxjncGa2RxzQVzoAyu+XFR6ajpeSZx5HwZcCD+Pa7 cGBdNC2GnCLB0gNCNVDyHcLkuG9om7uXjAq/AZw== X-Google-Smtp-Source: AGHT+IEyAbTTGJk7zxiFzMNIax5W6MSytIbBeFpY8leYMXAw8HA9num/Dpxq0Z3Y1bRKTrCfM43t6g== X-Received: by 2002:a17:903:230a:b0:24f:30dc:d3fe with SMTP id d9443c01a7336-25170e428f3mr148781375ad.29.1757400523108; Mon, 08 Sep 2025 23:48:43 -0700 (PDT) Received: from localhost ([2401:4900:3bec:9703:6d3b:d528:7d12:3951]) by smtp.gmail.com with UTF8SMTPSA id d9443c01a7336-24cc1a82a34sm135539105ad.151.2025.09.08.23.48.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Sep 2025 23:48:42 -0700 (PDT) Date: Tue, 9 Sep 2025 12:18:38 +0530 From: Mandar Mitra To: Robert Webb Subject: Re: [bug-diffutils] bug#79407: bug#79407: to-file option not working any more? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79407 Cc: 79407@debbugs.gnu.org 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.0 (-) Robert Webb wrote (Mon, Sep 08, 2025 at 09:06:11PM -0700): > Mandar, I can confirm that the --to-file option as a directory results > in only the first command-line file > being diffed, with errors for the others. Many thanks for confirming! Is there anything I can do to help fix this, or would it be absolutely straightforward for you to patch the correct handling from 3.6 (say) into 3.12? Warm regards, Mandar. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 09 05:12:00 2025 Received: (at 79407) by debbugs.gnu.org; 9 Sep 2025 09:12:00 +0000 Received: from localhost ([127.0.0.1]:57398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uvuON-0004uV-D3 for submit@debbugs.gnu.org; Tue, 09 Sep 2025 05:12:00 -0400 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:59792) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uvuOJ-0004u1-ON for 79407@debbugs.gnu.org; Tue, 09 Sep 2025 05:11:56 -0400 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-6188b793d21so8558022a12.3 for <79407@debbugs.gnu.org>; Tue, 09 Sep 2025 02:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757409108; x=1758013908; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jH18cYW3Se+i6OGry98aia3B/G1gke7NLeXz0gj/Y+g=; b=fA91Mp0964yq9ZT9uwsvs8BJ2fkByK4HQULnEc7SSYLgXcBjIJtB1hBVdFgjNuRGr8 BA5cKa/iMFNW4EHS5H40ot0nga1I9aONoBJbiSlcF+FSbxD8c1A1r4rHoBiakuP+JPYZ Vl/WhUbYnAC7t1qxrek4XGgRdKNU53vUFs/ChZjJhk2gjb6NgoXNCzvMgQK60x0xW5df 94vR8wVeLJagBFOzbEcqc4vvAal6hu1PpyED0Eh0QlDAHqiRDJuml768aX36GehaKTQ0 PlJml9M3uHTQQW/Dj254x7aq2N/Q5dQGkvxZx7KlrYqHIyLURuQP7ClDzpvkMc+54EZi C8Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757409108; x=1758013908; h=content-transfer-encoding:cc:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jH18cYW3Se+i6OGry98aia3B/G1gke7NLeXz0gj/Y+g=; b=YZr5tLMrkfHJLcjOlFvciQtuopaNXhtzoM45DqcIGkArSibMa8lyuPrYFW2z7sjsKt U52X4OyFAREBmXF+BI7zJSGchCYXIx9qQZFKqX27KZ0D/hiQmuWo4ewmRlV5OFaNnthA BtQ1VEdwnLvW5oJJUd+2NIPqu9lmRWmK6kT7w3R6Rnuz8uTkw/L6WQX2S7GOV/ogiUFI RtZjs9zxjXNP7EaABdc4yGMh+R8RIcBRsTNM+Mm8VvBOZHiheGON38VMWn6AcU6Krvdl Ep/uyhE+XTRd0m/se1/u97rZW51Znof+5kXW09SX13qcMQsm8LZSOobOcZ6Wun6Ix8f9 uIFg== X-Gm-Message-State: AOJu0YxVNogYKujbd17uS+kFBHMa5AKALNAdJQ7YzG5UzPePWUGF3XOB XgPkoXiZm1LaQV52TvCPOeSCzreakK5hjIqYXd6+D/FLyaDKCakAJTHr6tBQ5VV2XEOxH9X5UAV uOc53Lc3OWiN2UOmMHp6YsCYIsd6moDQf315U X-Gm-Gg: ASbGnct7UEbsBD0rh8Q/dk9Iit4NGhjol332fea6R2FB1PEt44dI670aTCmJhUZlTwz F3dUn9Rai+eilO7uRP2LvrkKBLovhAg6T6LKFs/XK/k8OItUpfl2FbpB01w0mQ8GCjHKqI6CaUR 08AReBppUeEDEQm5bMR9BKR5Q0c5MZhqlWm88YHRQbXb+VZfGX5mzK0octufUr8TbJNFHtP3gYe +I/NC/5wHc7S9Q= X-Google-Smtp-Source: AGHT+IFSem3F1hEnc0k1nA18xE+0jlr1ePDe+Vwfr4N3+DiQaEMTdQLGfnMA2vvTzB1gwmM+dhC9LOb4CGBleX8jnsc= X-Received: by 2002:a05:6402:42ca:b0:62c:8d1d:ea63 with SMTP id 4fb4d7f45d1cf-62c8d1deecdmr255562a12.16.1757409107654; Tue, 09 Sep 2025 02:11:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Robert Webb Date: Tue, 9 Sep 2025 02:11:31 -0700 X-Gm-Features: AS18NWCasfr228rC_qHH0Kc_tAc-gmyYu79ARj8coH6rmRx7ikmjWVqmNd3MSs8 Message-ID: Subject: Re: [bug-diffutils] bug#79407: bug#79407: to-file option not working any more? Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon, Sep 8, 2025 at 11:48 PM Mandar Mitra wrote: > > Robert Webb wrote (Mon, Sep 08, 2025 at 09:06:11PM -0700): > > Mandar, I can confirm that the --to-file option as a directory results > > in [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ro.webbdg[at]gmail.com) 1.2 MISSING_HEADERS Missing To: header 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:533 listed in] [list.dnswl.org] X-Debbugs-Envelope-To: 79407 Cc: 79407@debbugs.gnu.org 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: 0.2 (/) On Mon, Sep 8, 2025 at 11:48=E2=80=AFPM Mandar Mitra wrote: > > Robert Webb wrote (Mon, Sep 08, 2025 at 09:06:11PM -0700): > > Mandar, I can confirm that the --to-file option as a directory results > > in only the first command-line file > > being diffed, with errors for the others. > > Many thanks for confirming! Is there anything I can do to help fix this, = or would it be absolutely straightforward for you to patch the correct hand= ling from 3.6 (say) into 3.12? I am just a user of diffutils, like you. You could maybe find the exact version that changed diff's behavior. That would focus on a small set of source code changes where the problem might be. --=20 Robert Webb