GNU bug report logs - #76452
3.11 critical bug: diff -Naur a b does not show a unified diff when one of the file is empty

Previous Next

Package: diffutils;

Reported by: Kate Deplaix <kit-ty-kate <at> outlook.com>

Date: Fri, 21 Feb 2025 04:48:04 UTC

Severity: normal

Merged with 76453, 76454

Found in version 3.11

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


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

From: Collin Funk <collin.funk1 <at> gmail.com>
To: Kate Deplaix <kit-ty-kate <at> outlook.com>
Cc: Paul Eggert <eggert <at> cs.ucla.edu>, 76452 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#76452: bug#76452: 3.11 critical bug: diff
 -Naur a b does not show a unified diff when one of the file is empty
Date: Thu, 20 Feb 2025 22:39:40 -0800
[Message part 1 (text/plain, inline)]
Collin Funk <collin.funk1 <at> gmail.com> writes:

> I have attached a patch to check for this condition.

Since it seems easy to overlook this in the future I have attached a
patch with the test case as well.

Collin

[0001-diff-add-a-test-case-for-the-recent-empty-file-bug.patch (text/x-patch, attachment)]

This bug report was last modified 60 days ago.

Previous Next


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