Bug 253499 - find(1) doesn't list `-not` as an extension to POSIX
Summary: find(1) doesn't list `-not` as an extension to POSIX
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Daniel Ebdrup Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-14 10:56 UTC by Michael Siegel
Modified: 2021-02-23 16:17 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Siegel 2021-02-14 10:56:12 UTC
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.
Comment 1 Mina Galić 2021-02-14 11:08:15 UTC
for reference https://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html
Comment 2 Li-Wen Hsu freebsd_committer 2021-02-14 16:16:38 UTC
Thanks for reporting, do you want to also create a patch to fix this?
Comment 3 Michael Siegel 2021-02-23 13:31:34 UTC
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.
Comment 4 Daniel Ebdrup Jensen freebsd_committer 2021-02-23 15:25:02 UTC
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?
Comment 5 Michael Siegel 2021-02-23 16:01:58 UTC
(In reply to Daniel Ebdrup Jensen from comment #4)

Yes, that'll be fine.

Thanks.
Comment 6 commit-hook freebsd_committer 2021-02-23 16:16:58 UTC
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(-)
Comment 7 Daniel Ebdrup Jensen freebsd_committer 2021-02-23 16:17:41 UTC
Thank you for your attention to detail.