All the long/GNU options are listed for the short/Unix options in diff, except -b --ignore-space-change (or at least that's the one I noticed) Noticed this in 12.0-release
Created attachment 214597 [details] [PATCH] for diff.1 Attached patch fixes the issue. The patch was generated against r360869 root@patch:/usr/src # svnlite info Path: . Working Copy Root Path: /usr/src URL: https://svn.freebsd.org/base/head Relative URL: ^/head Repository Root: https://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 360869 Node Kind: directory Schedule: normal Last Changed Author: tuexen Last Changed Rev: 360869 Last Changed Date: 2020-05-10 22:03:10 +1200 (Sun, 10 May 2020) root@patch:/usr/src # uname -a FreeBSD patch 13.0-CURRENT FreeBSD 13.0-CURRENT #2 r360869: Wed May 13 10:57:22 NZST 2020 fnoyanisi@patch:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 root@patch:/usr/src #
Fixed, thank your for reporting and the patch submission
A commit references this bug: Author: bapt Date: Mon Jun 1 09:15:16 UTC 2020 New revision: 361690 URL: https://svnweb.freebsd.org/changeset/base/361690 Log: Document long version of -b option PR: 234195 Submitted by: Fehmi Noyan Isi <fnoyanisi@yahoo.com> Reported by: Andras Farkas <deepbluemistake@gmail.com> MFC after: 3 days Changes: head/usr.bin/diff/diff.1
A commit references this bug: Author: bapt Date: Sat Sep 19 20:15:52 UTC 2020 New revision: 365914 URL: https://svnweb.freebsd.org/changeset/base/365914 Log: MFC r361688-r361690, r365041 r361688: Restore compatibility with GNU diff regarding --label Various options to "diff(1)" show filenames, and traditionally make use of the "--label" parameter, if set. Restore this behaviour in BSD diff. While here add a regression test PR: 244533 Submitted by: Jamie Landeg-Jones <jamie@catflap.org> r361689: diff: restore compatibility with GNU diff regarding -N option When -N is used the missing files are treated as empty. PR: 233402 Submitted by: Fehmi Noyan Isi <fnoyanisi@yahoo.com> Reported by: Roman Neuhauser <roman@sigpipe.cz> Differential Revision: D25081 r361690: Document long version of -b option PR: 234195 Submitted by: Fehmi Noyan Isi <fnoyanisi@yahoo.com> Reported by: Andras Farkas <deepbluemistake@gmail.com> r365041: diff: always properly kill pr(1) When diff is invoked with -l it will spawn the pr(1) program. In some circumpstances the pr(1) was not properly killed when diff program exits. Submitted by: Bret Ketchum Differential Revision: https://reviews.freebsd.org/D26232 Changes: _U stable/12/ stable/12/usr.bin/diff/diff.1 stable/12/usr.bin/diff/diff.c stable/12/usr.bin/diff/diffreg.c stable/12/usr.bin/diff/tests/diff_test.sh