Bug 263093

Summary: Fix typo "the the"
Product: Documentation Reporter: Christian Weisgerber <naddy>
Component: Manual PagesAssignee: Christian Weisgerber <naddy>
Status: Closed FIXED    
Severity: Affects Only Me CC: doc, homaei, ygy
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
git diff for "the the" in man pages
none
rg "the the " /usr/src --sort path none

Description Christian Weisgerber freebsd_committer freebsd_triage 2022-04-06 14:56:28 UTC
Created attachment 233001 [details]
git diff for "the the" in man pages

I grepped the man pages for "the the" and found two non-contrib instances to fix.
Diff attached, or I can commit this directly if approved.
Comment 1 Guangyuan Yang freebsd_committer freebsd_triage 2022-04-07 00:12:42 UTC
Approved by: ygy (doc)

Please go ahead, thanks!
Comment 2 Christian Weisgerber freebsd_committer freebsd_triage 2022-04-07 12:59:34 UTC
Committed.
Comment 3 homaei 2023-05-05 09:07:12 UTC
nice job, but there are 106 other cases:

zgrep -iwl "the the" /usr/share/man/*/*.gz
Comment 4 Mathieu Arnold freebsd_committer freebsd_triage 2023-05-05 15:19:02 UTC
I have not looked at all occurrences of `the the`, but one should not blindly use sed, there are probably occurrences where it is warranted. (In those cases, the sentence should probably be rewritten though.)
Comment 5 Christian Weisgerber freebsd_committer freebsd_triage 2023-05-05 15:40:35 UTC
(In reply to homaei from comment #3)
You need to look under /usr/src. Most of the remaining instances of "the the" are probably from third-party software in contrib or crypto and should be fixed upstream.
Comment 6 homaei 2023-05-05 16:13:44 UTC
(In reply to Mathieu Arnold from comment #4)

This is exactly what the "-w" (man grep)is responsible for :)
the command is almost precise and i checked some of them, was OK.
Comment 7 homaei 2023-05-05 16:32:03 UTC
(In reply to Mathieu Arnold from comment #4)

i spent more than 1 hours to find "one the optimum and feasible" ways.
Comment 8 homaei 2023-05-05 16:36:36 UTC
(In reply to Christian Weisgerber from comment #5)

 Actually i did this, nothing found.
Comment 9 homaei 2023-05-05 17:19:14 UTC
Math and Chris, really appreciate your comments.

some of them even have 2 occurrences which is weird, like:

man setac
Comment 10 Graham Perrin freebsd_committer freebsd_triage 2023-05-05 18:14:40 UTC
Created attachment 242000 [details]
rg "the the " /usr/src --sort path

For anyone who would like to correct some of what's found.
Comment 11 homaei 2023-05-05 18:46:50 UTC
(In reply to Graham Perrin from comment #10)

rg "the the " /usr/src/share/man --sort path

still got nothing for man pages.


typos in .c or .h files are typical but in man pages have a bad feeling.
would be better to fix them all at once.