| 5831 is the number of manpages processed, or the number of total pages inside them processsed? I'm not sure I follow your question. A man file contains a single manpage. My 'find' command explicitly specified objects of type file rather than symlinks to avoid double-counting manfiles with multiple symlinks (I find 2527 symlinks under /usr/share/man/man). That excludes hard links -- turns out that agetty.8 and getty.8 are hard linked: $ find man* -type f ! -links 1
man8/agetty.8.gz
man8/getty.8.gz
My system has 18,590 manpages.*Mind if I ask what OS you're running? How many installed packages? And have you de-duplicated the manpages? I think it is very unlikely that the average person would file a bug report for documentation. I've filed such bugs. It's difficult to search across all packages, but there are a few filed for bash under Debian: http://bugs.debian.org/cgi-bin/pkgreport.cgi?include=subject... Re: different manpage section have different statistics: Well, yes. As I said, YMMV, however the mean is still generally within 1-2 pages of the 4-page mean I'd first described. Note that nowhere did I say that all manpages have EXAMPLE sections. Many (most?) don't. Hrm ... Of 3066 manpages in man1, I find 519 contain lines beginning with "EXAMPLE" in formatted output. That's roughly 17%. My bigger point is that addressing this deficiency rather than creating de novo documentation projects would be highly preferable. Much less glory, sadly. |
I am running archlinux which would normally be light, but unfortunately I work with a lot of different programming languages and prefer different tools for each. I did not deduplicate any of the manpages. The number of packages that I have installed, listed by `pacman -Q|wc -l` is 1241.
I agree that it would be nice to have a single place to go to get all of the details, but I think manpages suffer from more than just examples. I think that someone just starting *nix is likely to look online. While you can search manpages with apropos or man -k it doesn't search the whole document and people just starting don't know the terminal commands to search more.
I would rather have 2 commands and have all of the information than just manpages that don't get frequently updated.