summaryrefslogtreecommitdiffstats
path: root/apropos.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-04-04 15:51:28 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-04-04 15:51:28 +0000
commit770ad91865b8eb1c1ecb431ebe1a2bbb1bb7268d (patch)
tree865440af7e980edd554c11f7c8557adb708a07d5 /apropos.1
parenta8e5fb431fbaa6765f1d182b1206f26724239e4f (diff)
downloadmandoc-770ad91865b8eb1c1ecb431ebe1a2bbb1bb7268d.tar.gz
merge OpenBSD rev. 1.20, describing new features
Diffstat (limited to 'apropos.1')
-rw-r--r--apropos.122
1 files changed, 20 insertions, 2 deletions
diff --git a/apropos.1 b/apropos.1
index a316bb7c..4bcc00ce 100644
--- a/apropos.1
+++ b/apropos.1
@@ -26,6 +26,7 @@
.Op Fl C Ar file
.Op Fl M Ar path
.Op Fl m Ar path
+.Op Fl O Ar outkey
.Op Fl S Ar arch
.Op Fl s Ar section
.Ar expression ...
@@ -75,6 +76,10 @@ for
.Xr mandocdb 8
databases.
Invalid paths, or paths without manual databases, are ignored.
+.It Fl O Ar outkey
+Show the values associated with the key
+.Ar outkey
+instead of the manual descriptions.
.It Fl S Ar arch
Restrict the search to pages for the specified
.Xr machine 1
@@ -192,6 +197,8 @@ Names and description:
.Bl -column "xLix" description -offset indent -compact
.It Li \&Nm Ta manual name
.It Li \&Nd Ta one-line manual description
+.It Li arch Ta machine architecture (case-insensitive)
+.It Li sec Ta manual section number
.El
.Pp
Sections and cross references:
@@ -320,6 +327,15 @@ with the argument
.Qq ssh :
.Pp
.Dl $ apropos \-\- \-i 'Nm~[[:<:]]ssh[[:>:]]'
+.Pp
+The following two invocations are equivalent:
+.Pp
+.D1 Li $ apropos -S Ar arch Li -s Ar section expression
+.Bd -ragged -offset indent
+.Li $ apropos \e( Ar expression Li \e)
+.Li -a arch~^( Ns Ar arch Ns Li |any)$
+.Li -a sec~^ Ns Ar section Ns Li $
+.Ed
.Sh SEE ALSO
.Xr man 1 ,
.Xr re_format 7 ,
@@ -330,7 +346,7 @@ An
utility first appeared in
.Bx 2 .
It was rewritten from scratch for
-.Ox 5.1 .
+.Ox 5.6 .
.Pp
The
.Fl M
@@ -358,4 +374,6 @@ wrote the original
.Nm
in February 1979.
The current version was written by
-.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv .
+.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
+and
+.An Ingo Schwarze Aq Mt schwarze@openbsd.org .