The man(1) manual page has no mention about the exit status of the command. Nothing. Here is an copy of the debian man(1) page section, and I wish we would have something similar in our documentation: https://www.freebsd.org/cgi/man.cgi?query=man&apropos=0&sektion=0&manpath=Debian+8.1.0&arch=default&format=html#EXIT_STATUS EXIT STATUS 0 Successful program execution. 1 Usage, syntax or configuration file error. 2 Operational error. 3 A child process returned a non-zero exit status. 16 At least one of the pages/files/keywords didn't exist or wasn't matched.
the POSIX man(1) page http://pubs.opengroup.org/onlinepubs/9699919799/utilities/man.html EXIT STATUS The following exit values shall be returned: 0 Successful completion. >0 An error occurred.
A commit references this bug: Author: eadler Date: Sun Dec 31 00:35:12 UTC 2017 New revision: 327396 URL: https://svnweb.freebsd.org/changeset/base/327396 Log: man(1): document exit code man(1) uses standard exit codes, document that. PR: 223517 Reported by: wosch MFC after: 1 week Changes: head/usr.bin/man/man.1
A commit references this bug: Author: eadler Date: Sun Jan 7 00:35:53 UTC 2018 New revision: 327660 URL: https://svnweb.freebsd.org/changeset/base/327660 Log: MFC r327396: man(1): document exit code man(1) uses standard exit codes, document that. PR: 223517 Reported by: wosch Changes: _U stable/11/ stable/11/usr.bin/man/man.1