=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/apropos/Attic/apropos.1,v retrieving revision 1.2 retrieving revision 1.8 diff -u -r1.2 -r1.8 --- src/usr.bin/apropos/Attic/apropos.1 1996/06/26 05:31:14 1.2 +++ src/usr.bin/apropos/Attic/apropos.1 2003/03/10 05:51:29 1.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: apropos.1,v 1.2 1996/06/26 05:31:14 deraadt Exp $ +.\" $OpenBSD: apropos.1,v 1.8 2003/03/10 05:51:29 millert Exp $ .\" $NetBSD: apropos.1,v 1.4 1995/09/04 20:46:17 tls Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 @@ -42,23 +42,25 @@ .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 ... +.Ar keyword +.Op Ar ... .Sh DESCRIPTION -.Nm Apropos +.Nm shows which manual pages contain instances of any of the given .Ar keyword(s) in their title line. Each word is considered separately and case of letters is ignored. Words which are part of other words are considered; when looking for .Dq compile , -.Nm apropos +.Nm will also list all instances of .Dq compiler . .Pp If the line output by -.Nm apropos +.Nm starts .Dq Li name(section) ... you can enter @@ -67,27 +69,33 @@ its documentation. .Pp The options are as follows: -.Bl -tag -width flag -.It Fl M +.Bl -tag -width Ds +.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 apropos +.Nm searches for a database named .Pa whatis.db . The supplied .Ar path must be a colon -.Dq \&: +.Pq Sq \&: separated list of directories. This search path may also be set using the environment variable .Ev MANPATH . -.It Fl m +.It Fl m Ar path Augment the list of standard directories -.Nm apropos +.Nm searches for its database. The supplied .Ar path must be a colon -.Dq \&: +.Pq Sq \&: separated list of directories. These directories will be searched before the standard directories, or the directories supplied with the @@ -95,6 +103,7 @@ option or the .Ev MANPATH environment variable. +.El .Sh ENVIRONMENT .Bl -tag -width MANPATH .It Ev MANPATH @@ -104,20 +113,26 @@ .Ev MANPATH environment variable. The format of the path is a colon -.Dq \&: +.Pq Sq \&: 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 apropos +.Nm command appeared in .Bx 3.0 .