GNU bug report logs - #63405
Bug in diffutils 3.9 with -D option

Previous Next

Package: diffutils;

Reported by: Ralph Campbell <ralphcampbell1 <at> gmail.com>

Date: Wed, 10 May 2023 01:19:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63405 in the body.
You can then email your comments to 63405 AT debbugs.gnu.org in the normal way.

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#63405; Package diffutils. (Wed, 10 May 2023 01:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ralph Campbell <ralphcampbell1 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Wed, 10 May 2023 01:19:02 GMT) Full text and rfc822 format available.

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

From: Ralph Campbell <ralphcampbell1 <at> gmail.com>
To: bug-diffutils <at> gnu.org
Subject: Bug in diffutils 3.9 with -D option
Date: Tue, 9 May 2023 12:28:06 -0700
[Message part 1 (text/plain, inline)]
I'm using Fedora 38 and diffutils 3.9 installed. I also compiled from
source and see the same issue.

file1:
Here is some old line.

file2:
Here is some new line.

% diff-3.8 -D NEW file1 file2
#ifndef NEW
Here is some old line.
#else /* NEW */
Here is some new line.
#endif /* NEW */

% diff-3.9 -D NEW file1 file2:
Here is some old line.
Here is some new line.
[Message part 2 (text/html, inline)]

Information forwarded to bug-diffutils <at> gnu.org:
bug#63405; Package diffutils. (Wed, 10 May 2023 06:39:01 GMT) Full text and rfc822 format available.

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

From: Robert Webb <ro.webbdg <at> gmail.com>
Cc: 63405 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#63405: Bug in diffutils 3.9 with -D option
Date: Tue, 9 May 2023 23:37:48 -0700
On Tue, May 9, 2023 at 6:19 PM Ralph Campbell <ralphcampbell1 <at> gmail.com> wrote:
>
> I'm using Fedora 38 and diffutils 3.9 installed. I also compiled from source and see the same issue.
>
> file1:
> Here is some old line.
>
> file2:
> Here is some new line.
>
> % diff-3.8 -D NEW file1 file2
> #ifndef NEW
> Here is some old line.
> #else /* NEW */
> Here is some new line.
> #endif /* NEW */
>
> % diff-3.9 -D NEW file1 file2:
> Here is some old line.
> Here is some new line.

Ralph, this is the same bug as:
    bug#61193: '-D' option of diff 3.9 - #ifdef directives missing
    https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61193

There is a patch available.
-- 
Robert Webb




Information forwarded to bug-diffutils <at> gnu.org:
bug#63405; Package diffutils. (Sun, 14 May 2023 19:23:02 GMT) Full text and rfc822 format available.

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

From: Jim Meyering <jim <at> meyering.net>
To: Robert Webb <ro.webbdg <at> gmail.com>
Cc: 63405 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#63405: bug#63405: Bug in diffutils 3.9 with
 -D option
Date: Sun, 14 May 2023 21:22:35 +0200
merge 61193 63405
done

On Wed, May 10, 2023 at 8:39 AM Robert Webb <ro.webbdg <at> gmail.com> wrote:
...
> Ralph, this is the same bug as:
>     bug#61193: '-D' option of diff 3.9 - #ifdef directives missing
>     https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61193

Thanks.
There is now a snapshot that includes that fix:
  https://lists.gnu.org/r/diffutils-devel/2023-05/msg00002.html




bug closed, send any further explanations to 63405 <at> debbugs.gnu.org and Ralph Campbell <ralphcampbell1 <at> gmail.com> Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Mon, 22 May 2023 01:49:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 19 Jun 2023 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 284 days ago.

Previous Next


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