=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/apropos/Attic/apropos.1,v retrieving revision 1.6 retrieving revision 1.13 diff -u -r1.6 -r1.13 --- src/usr.bin/apropos/Attic/apropos.1 2000/07/06 04:06:53 1.6 +++ src/usr.bin/apropos/Attic/apropos.1 2008/12/24 09:05:17 1.13 @@ -1,4 +1,4 @@ -.\" $OpenBSD: apropos.1,v 1.6 2000/07/06 04:06:53 aaron Exp $ +.\" $OpenBSD: apropos.1,v 1.13 2008/12/24 09:05:17 jmc Exp $ .\" $NetBSD: apropos.1,v 1.4 1995/09/04 20:46:17 tls Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 @@ -12,11 +12,7 @@ .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors +.\" 3. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" @@ -34,7 +30,7 @@ .\" .\" @(#)apropos.1 8.1 (Berkeley) 6/29/93 .\" -.Dd June 29, 1993 +.Dd $Mdocdate: December 24 2008 $ .Dt APROPOS 1 .Os .Sh NAME @@ -42,10 +38,12 @@ .Nd locate commands by keyword lookup .Sh SYNOPSIS .Nm apropos +.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 @@ -61,14 +59,20 @@ If the line output by .Nm starts -.Dq Li name(section) ... +.Dq Li name (section) ... , you can enter .Dq Li man section name to get its documentation. .Pp The options are as follows: -.Bl -tag -width flag +.Bl -tag -width "-C file" +.It Fl C Ar file +Specify an alternative configuration +.Ar file +in +.Xr man.conf 5 +format. .It Fl M Ar path Override the list of standard directories .Nm @@ -96,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 @@ -110,14 +120,20 @@ separated list of directories. .El .Sh FILES -.Bl -tag -width whatis.db -compact +.Bl -tag -width /etc/man.conf -compact .It Pa whatis.db name of the apropos database +.It Pa /etc/man.conf +default +.Xr man 1 +configuration file .El .Sh SEE ALSO .Xr man 1 , .Xr whatis 1 , -.Xr whereis 1 +.Xr whereis 1 , +.Xr man.conf 5 , +.Xr makewhatis 8 .Sh HISTORY The .Nm