GNU bug report logs - #77615
difference in diff -wB with and without -u

Previous Next

Package: diffutils;

Reported by: Aaron Davies <aaron.davies <at> gmail.com>

Date: Mon, 7 Apr 2025 18:26:02 UTC

Severity: normal

To reply to this bug, email your comments to 77615 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-diffutils <at> gnu.org:
bug#77615; Package diffutils. (Mon, 07 Apr 2025 18:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Aaron Davies <aaron.davies <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Mon, 07 Apr 2025 18:26:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Aaron Davies <aaron.davies <at> gmail.com>
To: bug-diffutils <at> gnu.org
Subject: difference in diff -wB with and without -u
Date: Mon, 7 Apr 2025 14:25:29 -0400
this pair of files shows one line of difference with diff -wB and two
with diff -uwB

is this expected?

$ ./show
+ cat -vet a
    $
    a$
    b$
  $
+ cat -vet b
    a$
$
+ diff -wB a b
3d1
<     b
+ diff -uwB a b
--- a 2025-04-04 17:41:34.684282476 -0400
+++ b 2025-04-04 17:42:13.171166665 -0400
@@ -1,4 +1,2 @@
-
     a
-    b

+ diff --version
+ sed q
diff (GNU diffutils) 3.11
$
-- 
Aaron Davies
aaron.davies <at> gmail.com




This bug report was last modified 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.