Bug 233402 - diff -N: loss of functionality
Summary: diff -N: loss of functionality
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-22 11:26 UTC by Roman Neuhauser
Modified: 2018-11-22 23:46 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Neuhauser 2018-11-22 11:26:15 UTC
-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@crowbar ~ master 0 1002 0 . echo fubar > snafu
roman@crowbar ~ master 0 1003 0 . diff snafu wtf
diff: wtf: No such file or directory
roman@crowbar ~ master 0 1004 2 . diff -N snafu wtf 
1d0
< fubar

FreeBSD:

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