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
Unknown Object (File)
Sat, Sep 5, 10:03 AM
Unknown Object (File)
Sat, Sep 5, 5:25 AM
Unknown Object (File)
Sat, Sep 5, 5:25 AM
Unknown Object (File)
Sat, Sep 5, 5:17 AM
Unknown Object (File)
Fri, Sep 4, 11:41 AM
Unknown Object (File)
Fri, Sep 4, 11:35 AM
Unknown Object (File)
Thu, Sep 3, 10:24 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 Not Applicable
Unit
Tests Not Applicable

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.