Page MenuHomeFreeBSD

find.1: fix rendering of find -s example
ClosedPublic

Authored by rlibby on Thu, Sep 3, 7:48 PM.
Tags
None
Referenced Files
F171550918: D59353.id185823.diff
Fri, Sep 11, 5:23 PM
F171529888: D59353.id185988.diff
Fri, Sep 11, 3:02 PM
F171399313: D59353.diff
Thu, Sep 10, 10:17 PM
Unknown Object (File)
Thu, Sep 10, 6:26 PM
Unknown Object (File)
Thu, Sep 10, 5:30 PM
Unknown Object (File)
Thu, Sep 10, 12:15 PM
Unknown Object (File)
Thu, Sep 10, 7:37 AM
Unknown Object (File)
Thu, Sep 10, 2:30 AM
Subscribers

Details

Summary

The period here is part of the literal string in the example. Adding a
space caused the example to be quoted wrongly.

Test Plan

Before, and see https://man.freebsd.org/cgi/man.cgi?query=find&apropos=0&sektion=1&manpath=FreeBSD+15.1-RELEASE&format=html

For example, ‘find -s’ puts a directory ‘foo’ with all its
contents before a directory ‘foo’.  but ‘find | sort’ puts the
directory name ‘foo’.  before any string like ‘foo/bar’ because
‘.’ goes before ‘/’ in ASCII.  In locales other than C results
may vary more due to collation differences.

After

For example, ‘find -s’ puts a directory ‘foo’ with all its
contents before a directory ‘foo.’ but ‘find | sort’ puts the
directory name ‘foo.’ before any string like ‘foo/bar’ because
‘.’ goes before ‘/’ in ASCII.  In locales other than C results
may vary more due to collation differences.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76436
Build 73319: arc lint + arc unit

Event Timeline

rlibby requested review of this revision.Thu, Sep 3, 7:48 PM
rlibby added reviewers: gbe, eugen_grosbein.net.
rlibby edited the test plan for this revision. (Show Details)
ziaee requested changes to this revision.Fri, Sep 4, 10:00 AM
ziaee added a reviewer: manpages.
ziaee added inline comments.
usr.bin/find/find.1
164

This will cause a linter complaint. You need to escape the period with a zero-width space.

168

Ditto.

This revision now requires changes to proceed.Fri, Sep 4, 10:00 AM

ziaee feedback: use a zero-width space to keep the linter happy

This revision is now accepted and ready to land.Fri, Sep 4, 3:20 PM
This revision was automatically updated to reflect the committed changes.