=================================================================== RCS file: /cvs/mandoc/man.1,v retrieving revision 1.34 retrieving revision 1.35 diff -u -p -r1.34 -r1.35 --- mandoc/man.1 2018/11/22 11:30:23 1.34 +++ mandoc/man.1 2019/03/09 15:55:01 1.35 @@ -1,4 +1,4 @@ -.\" $Id: man.1,v 1.34 2018/11/22 11:30:23 schwarze Exp $ +.\" $Id: man.1,v 1.35 2019/03/09 15:55:01 schwarze Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,7 +31,7 @@ .\" .\" @(#)man.1 8.2 (Berkeley) 1/2/94 .\" -.Dd $Mdocdate: November 22 2018 $ +.Dd $Mdocdate: March 9 2019 $ .Dt MAN 1 .Os .Sh NAME @@ -218,12 +218,24 @@ Guidelines for writing man pages can be found in .Xr mdoc 7 . .Pp +The +.Xr mandoc.db 5 +database is used for looking up manual page entries. +In cases where the database is absent, outdated, or corrupt, +.Nm +falls back to looking for files called +.Ar name . Ns Ar section . If both a formatted and an unformatted version of the same manual page, for example .Pa cat1/foo.0 and .Pa man1/foo.1 , exist in the same directory, only the unformatted version is used. +The database is kept up to date with +.Xr makewhatis 8 , +which is run by the +.Xr weekly 8 +maintenance script. .Sh ENVIRONMENT .Bl -tag -width MANPATHX .It Ev MACHINE