Could someone please point to an example, so that the difference in quality becomes apparent?
Could someone please point to an example, so that the difference in quality becomes apparent?
http://man.openbsd.org/ifconfig.8
https://linux.die.net/man/8/ip
The Linux one doesn't have an example anywhere of how to assign an IP address to an interface. Which is probably the most basic thing that you would be looking for.
https://linux.die.net/man/8/ifconfig
which says "This program is obsolete! For replacement check ip addr and ip link" and references ip(8) in the See Also section. Neither page refers to ip-address. In fact that entry doesn't exist on die.net which seems to be what Google considers to be the authoritative source for Linux man pages.
https://manpages.debian.org/testing/iproute2/ip-address.8.en...
Semi-recent Centos7:
$ which find
/usr/bin/find
$ rpm -q --whatprovides '/usr/bin/find'
findutils-4.5.11-6.el7.x86_64
$ man find
No manual entry for find
$ more /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
So it claims to have the findutils rpm installed, which comes with manpages (especially since there is no find-man rpm) but I didn't get them for reasons. You just don't get that kind of experience on BSDs unless you very deliberately unmark manpages for installations. (which could be some kind of usecase, sure)
https://linux.die.net/man/1/find
I usually read man pages on OpenBSD, even when I'm working on Linux. I also often link people on IRC OpenBSD man pages when they're struggling with their tools (or their manuals) on Linux. The reception is generally positive.
To me, much like code and math, the art of writing good documentation is all about finding a way to make it short and simple (but still correct and complete).
It's possible that I just don't know how to use info. I always end up in the wrong place. That does not happen with man.
> and using the index you can jump to the canonical docs for any argument or command in one go
How?
> (ever spent time trying to find the hyphen-character section of a man page but struggled because it's referenced in 10 places?)
No, because the options are indented and inserting a few spaces before the hyphen in search string eliminates virtually all in-text references. Conventionally, the options are alpha-sorted too. In info pages, I end up wondering which section the option I want might be covered in.
I in Emacs info-mode. The prompt also has autocompletion.
As sibling commenters have mentioned, the Info tooling and format encourages people to split up their content into a bunch of nodes. In my experience, ~80% of Info manuals would be better if they were just concatenated into a single node, which the user could quickly Ctrl-F through with the tool of their choice.
[1] https://www.gnu.org/software/texinfo/manual/info-stnd/info-s...
[2] https://www.gnu.org/software/texinfo/manual/info-stnd/info-s...
But the good news is I read GNU is moving away from INFO for something else, forgot what it was.
Particularly when taking a certain vendor's certification tests, it was the work of seconds to write a man page example to disk and turn that into a script.
https://www.gnu.org/software/findutils/manual/html_mono/find...
(Many of us out there have serious m4 trauma.)
Or you can buy a nice little library from OpenBSD where the PCM part is sufficiently described in one short man page: http://man.openbsd.org/sio_open.3
(With enough detail so that you can use it to write e.g. a latency-aware rhythm game that manages to keep audio and video in sync...)
Can you beat "uint32_t arc4random(void); void arc4random_buf(void *buf, size_t nbytes); uint32_t arc4random_uniform(uint32_t upper_bound);" as a RNG API? (No. Add it, glibc.)