[Bug 233402] diff -N: loss of functionality

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 22 11:26:17 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233402

            Bug ID: 233402
           Summary: diff -N: loss of functionality
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: roman at sigpipe.cz

-N works without -r in GNU diff, which is useful because it can make scripts a
tiny bit simpler.  this functionality got lost with the switch from GNU diff to
the OpenBSD one.

GNU/Linux:

roman at crowbar ~ master 0 1002 0 . echo fubar > snafu
roman at crowbar ~ master 0 1003 0 . diff snafu wtf
diff: wtf: No such file or directory
roman at crowbar ~ master 0 1004 2 . diff -N snafu wtf 
1d0
< fubar

FreeBSD:

roman at sheeba ~ master :M 0 1003 2 . echo fubar > snafu
roman at sheeba ~ master :M 0 1004 0 . diff snafu wtf
diff: wtf: No such file or directory
roman at sheeba ~ master :M 0 1005 2 . diff -N snafu wtf 
diff: wtf: No such file or directory

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list