The STANDARDS section of find(1) lists options that are an extension to POSIX find(1) syntax. But `-not` is missing from that list of extensions. GNU, NetBSD, and OpenBSD all mention it as not part of POSIX.
for reference https://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html
Thanks for reporting, do you want to also create a patch to fix this?
I'm sorry, but I'll have to leave it to others to provide a fix. I'm currently not a FreeBSD user and pretty much unfamiliar with FreeBSD's development process. Also, parts of the project's Code of Conduct strike me as rather problematic, so I'd be hesitant to contribute anything beyond the occasional bug report in general.
I'll take this. How do you want your name and email listed in the 'Reported by:' field? The usual syntax is "Firstname Lastname <user@example.org>", is that fine?
(In reply to Daniel Ebdrup Jensen from comment #4) Yes, that'll be fine. Thanks.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=75e6f664c469927ca73ecd7b16a8058bc292a451 commit 75e6f664c469927ca73ecd7b16a8058bc292a451 Author: Daniel Ebdrup Jensen <debdrup@FreeBSD.org> AuthorDate: 2021-02-23 15:23:09 +0000 Commit: Daniel Ebdrup Jensen <debdrup@FreeBSD.org> CommitDate: 2021-02-23 16:15:35 +0000 find(1): Mark -not as an extensions to POSIX While here, change mdoc macro from Ic to Fl. PR: 253499 Reported by: Michael Siegel <bugcounterism at malbolge.net> usr.bin/find/find.1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Thank you for your attention to detail.
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=001d849a4871e3792a69ad3dfb24061018712bac commit 001d849a4871e3792a69ad3dfb24061018712bac Author: Daniel Ebdrup Jensen <debdrup@FreeBSD.org> AuthorDate: 2021-02-23 15:23:09 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> CommitDate: 2021-03-20 10:20:28 +0000 find(1): Mark -not as an extensions to POSIX While here, change mdoc macro from Ic to Fl. PR: 253499 Reported by: Michael Siegel <bugcounterism at malbolge.net> (cherry picked from commit 75e6f664c469927ca73ecd7b16a8058bc292a451) usr.bin/find/find.1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a03c85daaefc58693208f2c74aaf46e5932ff1d2 commit a03c85daaefc58693208f2c74aaf46e5932ff1d2 Author: Daniel Ebdrup Jensen <debdrup@FreeBSD.org> AuthorDate: 2021-02-23 15:23:09 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> CommitDate: 2021-03-20 10:25:58 +0000 find(1): Mark -not as an extensions to POSIX While here, change mdoc macro from Ic to Fl. PR: 253499 Reported by: Michael Siegel <bugcounterism at malbolge.net> (cherry picked from commit 75e6f664c469927ca73ecd7b16a8058bc292a451) usr.bin/find/find.1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)