aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit5222bf5d62c70c6ef855e9c51d578d55cd377832 (patch)
tree8e5b636a63baef336f6820caf1f036bdce2549cc /apropos.1
parent948cfc767fc01b4caf82976949dceb3581462b3e (diff)
downloadmandoc-5222bf5d62c70c6ef855e9c51d578d55cd377832.tar.gz
mandoc-5222bf5d62c70c6ef855e9c51d578d55cd377832.tar.zst
mandoc-5222bf5d62c70c6ef855e9c51d578d55cd377832.zip
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.124
1 files changed, 4 insertions, 20 deletions
diff --git a/apropos.1 b/apropos.1
index 10f78773..01d2a6bf 100644
--- a/apropos.1
+++ b/apropos.1
@@ -1,4 +1,4 @@
-.\" $Id: apropos.1,v 1.48 2018/11/19 19:27:37 schwarze Exp $
+.\" $Id: apropos.1,v 1.49 2018/11/22 12:33:52 schwarze Exp $
.\"
.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2011,2012,2014,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: November 19 2018 $
+.Dd $Mdocdate: November 22 2018 $
.Dt APROPOS 1
.Os
.Sh NAME
@@ -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