=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/apropos/Attic/apropos.1,v retrieving revision 1.1 retrieving revision 1.9 diff -u -r1.1 -r1.9 --- src/usr.bin/apropos/Attic/apropos.1 1995/10/18 08:44:52 1.1 +++ src/usr.bin/apropos/Attic/apropos.1 2003/06/03 02:56:05 1.9 @@ -1,3 +1,4 @@ +.\" $OpenBSD: apropos.1,v 1.9 2003/06/03 02:56:05 millert Exp $ .\" $NetBSD: apropos.1,v 1.4 1995/09/04 20:46:17 tls Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 @@ -11,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. .\" @@ -41,23 +38,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 @@ -66,27 +65,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 @@ -94,6 +99,7 @@ option or the .Ev MANPATH environment variable. +.El .Sh ENVIRONMENT .Bl -tag -width MANPATH .It Ev MANPATH @@ -103,20 +109,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 .