diff options
author | 2019-05-03 09:39:01 +0000 | |
---|---|---|
committer | 2019-05-03 09:39:01 +0000 | |
commit | 74c6ffce73f932dd8464cc1def1ee4fcaa3e671f (patch) | |
tree | d24245b825b3cea77e1440138e94eefd0054dd8f /usr.bin/mandoc/manpath.c | |
parent | Use the correct (according to POSIX) format for left-justification (diff) | |
download | wireguard-openbsd-74c6ffce73f932dd8464cc1def1ee4fcaa3e671f.tar.xz wireguard-openbsd-74c6ffce73f932dd8464cc1def1ee4fcaa3e671f.zip |
In man(1) mode, when the first argument starts with a digit,
optionally followed by a letter, and at least one more argument
follows, interpret the first argument as a section name even when
additional characters follow after the digit and letter.
This is needed because many operating systems have section names
consisting of a digit followed by more than one letter - for example
Illumos, Solaris, Linux, even NetBSD.
There is very little risk of regressions: in the whole corpus of
manual pages on man.openbsd.org, there isn't a single manual page
name starting with a digit. And even if programs like "0ad" or
"4channels" had manual pages, "man 0ad" and "man -a cat 0ad" would
still work, only "man -a 0ad cat" will fail with "man: No entry for
cat in section 0ad of the manual."
Fixing one of the issues reported by Lorenzo Beretta <loreb at github>
as part of https://github.com/void-linux/void-packages/issues/9868 .
Diffstat (limited to 'usr.bin/mandoc/manpath.c')
0 files changed, 0 insertions, 0 deletions