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-03-20 10:26 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ć freebsd_triage 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 freebsd_triage 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 freebsd_triage 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 freebsd_triage 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 freebsd_triage 2021-02-23 16:17:41 UTC
Thank you for your attention to detail.
Comment 8 commit-hook freebsd_committer freebsd_triage 2021-03-20 10:22:56 UTC
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(-)
Comment 9 commit-hook freebsd_committer freebsd_triage 2021-03-20 10:26:59 UTC
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(-)