=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/apropos/Attic/apropos.1,v retrieving revision 1.10 retrieving revision 1.16 diff -u -r1.10 -r1.16 --- src/usr.bin/apropos/Attic/apropos.1 2004/03/31 08:45:48 1.10 +++ src/usr.bin/apropos/Attic/apropos.1 2012/01/22 13:45:22 1.16 @@ -1,4 +1,4 @@ -.\" $OpenBSD: apropos.1,v 1.10 2004/03/31 08:45:48 jmc Exp $ +.\" $OpenBSD: apropos.1,v 1.16 2012/01/22 13:45:22 schwarze Exp $ .\" $NetBSD: apropos.1,v 1.4 1995/09/04 20:46:17 tls Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)apropos.1 8.1 (Berkeley) 6/29/93 .\" -.Dd June 29, 1993 +.Dd $Mdocdate: January 22 2012 $ .Dt APROPOS 1 .Os .Sh NAME @@ -41,8 +41,9 @@ .Op Fl C Ar file .Op Fl M Ar path .Op Fl m Ar path -.Ar keyword -.Op Ar ... +.Op Fl S Ar subsection +.Op Fl s Ar section +.Ar keyword ... .Sh DESCRIPTION .Nm shows which manual pages contain instances of any of the given @@ -99,6 +100,12 @@ option or the .Ev MANPATH environment variable. +.It Fl S Ar subsection +Restrict the search to pages for the specified machine architecture. +By default, pages for all architectures are shown. +.It Fl s Ar section +Restrict the search to the specified section of the manual. +By default, pages from all sections are shown. .El .Sh ENVIRONMENT .Bl -tag -width MANPATH @@ -130,5 +137,30 @@ .Sh HISTORY The .Nm -command appeared in -.Bx 3.0 . +command first appeared in +.Bx 2 . +.Pp +The +.Fl M +option and the +.Ev MANPATH +variable first appeared in +.Bx 4.3 ; +.Fl m +in +.Bx 4.3 Reno ; +.Fl C +in +.Bx 4.4 Lite1 ; +and +.Fl s +and +.Fl S +in +.Ox 4.5 . +.Sh AUTHORS +.An Bill Joy +wrote the original +.Bx +.Nm +in February 1979.