Subject: bug#61193: '-D' option of diff 3.9 - #ifdef directives missing

From: Robert Webb <[email-masked]>
Date: Fri, 10 Feb 2023 14:51:30 -0800

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