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 <email@example.com>", is that fine?
(In reply to Daniel Ebdrup Jensen from comment #4)
Yes, that'll be fine.
A commit in branch main references this bug:
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.
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.