GNU bug report logs - #61193
'-D' option of diff 3.9 - #ifdef directives missing

Previous Next

Package: diffutils;

Reported by: Robert Webb <ro.webbdg <at> gmail.com>

Date: Tue, 31 Jan 2023 05:37:03 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Robert Webb <ro.webbdg <at> gmail.com>
To: 61193 <at> debbugs.gnu.org
Subject: bug#61193: '-D' option of diff 3.9 - #ifdef directives missing
Date: Fri, 10 Feb 2023 14:51:30 -0800
[Message part 1 (text/plain, inline)]
Here is a pass/fail test to compare diff versions:

    #!/bin/bash
    diff -D AAAA /dev/null <(echo A) \
      |cmp - <(printf '%s\n' '#ifdef AAAA' A '#endif /* AAAA */')

The diff in diffutils v3.8 passes.  Version 3.9 fails.
-- 
Robert Webb
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 160 days ago.

Previous Next


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