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
F171123441: D59353.id185988.diff
Tue, Sep 8, 8:42 PM
F171112317: D59353.diff
Tue, Sep 8, 6:53 PM
F171082477: D59353.diff
Tue, Sep 8, 2:32 PM
F171038083: D59353.id185738.diff
Tue, Sep 8, 8:14 AM
F171035086: D59353.id185823.diff
Tue, Sep 8, 7:51 AM
F171031438: D59353.id185738.diff
Tue, Sep 8, 7:21 AM
Unknown Object (File)
Mon, Sep 7, 7:43 PM
Unknown Object (File)
Mon, Sep 7, 5:41 PM
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 76498
Build 73381: 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.