summaryrefslogtreecommitdiffstats
path: root/apropos.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-11-22 12:33:52 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-11-22 12:33:52 +0000
commitff5d8eb0330aa41fed303bf6c942ce2cb663a51e (patch)
tree45e817aa6c10e3cc4d2d7331a31282cdaa7e7178 /apropos.1
parent1ac47583c44066590d7952c4e31d4b736ae27fca (diff)
downloadmandoc-ff5d8eb0330aa41fed303bf6c942ce2cb663a51e.tar.gz
Correct and shorten the description of the sort order of apropos(1)
results. As a matter of fact, which manpath the page comes from does not matter in that context. That only matters for the priority of pages in man(1) mode (without -a, -f, and -k). Noticed while working on a patch from Yuri Pankov <yuripv at FreeBSD>.
Diffstat (limited to 'apropos.1')
-rw-r--r--apropos.120
1 files changed, 2 insertions, 18 deletions
diff --git a/apropos.1 b/apropos.1
index 3970fcc7..038db46b 100644
--- a/apropos.1
+++ b/apropos.1
@@ -207,26 +207,10 @@ is evaluated case-insensitively.
Has no effect on substring terms.
.El
.Pp
-Results are sorted according to the following criteria:
-.Bl -enum
-.It
-The manpath directory tree the page is found in, according to the
-order specified with
-.Fl M ,
-.Fl m ,
-the
-.Ev MANPATH
-environment variable, the
-.Xr man.conf 5
-configuration file, or the default documented in
-.Xr man.conf 5 .
-.It
-The section number in ascending numerical order.
-.It
-The page name in ascending
+Results are sorted first according to the section number in ascending
+numerical order, then by the page name in ascending
.Xr ascii 7
alphabetical order, case-insensitive.
-.El
.Pp
Each output line is formatted as
.Pp