1993-07-08 01:07:02 +02:00
|
|
|
.\" Man page for manpath
|
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1990, 1991, John W. Eaton.
|
|
|
|
.\"
|
|
|
|
.\" You may distribute under the terms of the GNU General Public
|
|
|
|
.\" License as specified in the README file that comes with the man 1.0
|
1999-08-16 13:34:57 +02:00
|
|
|
.\" distribution.
|
1993-07-08 01:07:02 +02:00
|
|
|
.\"
|
|
|
|
.\" John W. Eaton
|
|
|
|
.\" jwe@che.utexas.edu
|
|
|
|
.\" Department of Chemical Engineering
|
|
|
|
.\" The University of Texas at Austin
|
|
|
|
.\" Austin, Texas 78712
|
|
|
|
.\"
|
1999-08-28 01:37:10 +02:00
|
|
|
.\" $FreeBSD$
|
2000-12-11 16:15:20 +01:00
|
|
|
.Dd August 16, 1999
|
1996-12-09 08:57:54 +01:00
|
|
|
.Dt MANPATH 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm manpath
|
|
|
|
.Nd determine user's search path for man pages
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
1999-11-23 04:06:18 +01:00
|
|
|
.Op Fl dLq
|
1996-12-09 08:57:54 +01:00
|
|
|
.Sh DESCRIPTION
|
2006-12-25 00:07:11 +01:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility
|
1996-12-09 08:57:54 +01:00
|
|
|
tries to determine the user's manpath from a set of system
|
1993-07-08 01:07:02 +02:00
|
|
|
defaults and the user's
|
1996-12-09 08:57:54 +01:00
|
|
|
.Ev PATH ,
|
1999-08-16 13:34:57 +02:00
|
|
|
echoing the result to the standard output.
|
|
|
|
Warnings and errors are written to the standard error.
|
|
|
|
If a directory in the user's path is not listed in the
|
|
|
|
.Pa %manpath_config_file%
|
|
|
|
file,
|
1996-12-09 08:57:54 +01:00
|
|
|
.Nm
|
1999-08-16 13:34:57 +02:00
|
|
|
looks for the subdirectories
|
|
|
|
.Pa man
|
|
|
|
or
|
|
|
|
.Pa MAN .
|
|
|
|
If they exist, they are added to the search path.
|
2001-10-01 18:58:30 +02:00
|
|
|
If they do not exist, but the directory ends in
|
|
|
|
.Pa /bin ,
|
|
|
|
.Nm
|
|
|
|
replaces
|
|
|
|
.Pa /bin
|
|
|
|
with
|
|
|
|
.Pa /man
|
|
|
|
and checks if that directory exists.
|
|
|
|
If it exists, it is added to the search path.
|
1999-08-16 13:34:57 +02:00
|
|
|
.Pp
|
2006-12-25 00:07:11 +01:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is used by
|
1999-08-16 13:34:57 +02:00
|
|
|
.Xr man 1
|
2005-02-13 23:25:33 +01:00
|
|
|
to determine the search path, so users normally do not need to set the
|
1996-12-09 08:57:54 +01:00
|
|
|
.Ev MANPATH
|
1993-07-08 01:07:02 +02:00
|
|
|
environment variable directly.
|
1996-12-09 08:57:54 +01:00
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
2006-12-25 00:07:11 +01:00
|
|
|
.Bl -tag -width indent
|
1999-11-23 04:06:18 +01:00
|
|
|
.It Fl d
|
|
|
|
Output additional debug information.
|
|
|
|
.It Fl L
|
2006-12-25 00:07:11 +01:00
|
|
|
Output man locales list (if it exists).
|
1996-12-09 08:57:54 +01:00
|
|
|
.It Fl q
|
1999-08-16 13:34:57 +02:00
|
|
|
Operate quietly.
|
1999-11-23 04:06:18 +01:00
|
|
|
Only echo the final result.
|
1996-12-09 08:57:54 +01:00
|
|
|
.El
|
|
|
|
.Sh ENVIRONMENT
|
2006-12-25 00:07:11 +01:00
|
|
|
.Bl -tag -width ".Ev MANLOCALES" -compact
|
1996-12-09 08:57:54 +01:00
|
|
|
.It Ev MANPATH
|
1993-07-08 01:07:02 +02:00
|
|
|
If
|
1996-12-09 08:57:54 +01:00
|
|
|
.Ev MANPATH
|
1993-07-08 01:07:02 +02:00
|
|
|
is set,
|
1999-08-16 13:34:57 +02:00
|
|
|
.Nm
|
1993-07-08 01:07:02 +02:00
|
|
|
echoes its value on the standard output and issues a warning on the
|
|
|
|
standard error.
|
1999-11-23 04:06:18 +01:00
|
|
|
.It Ev MANLOCALES
|
|
|
|
If
|
|
|
|
.Ev MANLOCALES
|
|
|
|
is set and
|
|
|
|
.Fl L
|
|
|
|
option is set,
|
|
|
|
.Nm
|
|
|
|
echoes its value on the standard output and issues a warning on the
|
|
|
|
standard error.
|
1996-12-09 08:57:54 +01:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
2006-12-25 00:07:11 +01:00
|
|
|
.Bl -tag -width ".Pa %manpath_config_file%" -compact
|
1996-12-09 08:57:54 +01:00
|
|
|
.It Pa %manpath_config_file%
|
1993-07-08 01:07:02 +02:00
|
|
|
System configuration file.
|
1996-12-09 08:57:54 +01:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr apropos 1 ,
|
2001-07-06 18:46:48 +02:00
|
|
|
.Xr man 1 ,
|
|
|
|
.Xr whatis 1
|