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

Full log


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 68 days ago.

Previous Next


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