@b0rkJulia Evans Possibly relevant to your interests: whynothugo.nl/journal/2025/04/

TIL man pages actually have some pretty decent formatting. The modern mdoc syntax has a semantic representation for flags (though it's mixed utility because it's used both in their definition list and in the main body of sections of the manual; in general though, a list item with a flag on it will be the flag definition, so .It Fl A is almost always the definition of the "-A" flag).

So given this detail, why are we still scrounging through manpages using partially-effective string matches to find a definition? Because by default, man rips its output through a terminal-formatter and then dumps it to less, and less doesn't give the end-user access to all that detail in the resulting file.

So there's room on the ground for someone to write a better manpage parser, then use man -w <name> to get the path to the file and consume it with that parser; just hasn't happened yet.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.fixermark.com/users/mark/statuses/114308557142485781 on your instance and quote it. (Note that quoting is not supported in Mastodon.)