1c535eb59SGordon Tetlow.\"- 2*d928328fSAlexander Ziaee.\" SPDX-License-Identifer: BSD-2-Clause 3*d928328fSAlexander Ziaee.\" 4c535eb59SGordon Tetlow.\" Copyright (c) 2010 Gordon Tetlow 5c535eb59SGordon Tetlow.\" All rights reserved. 6c535eb59SGordon Tetlow.\" 7c535eb59SGordon Tetlow.\" Redistribution and use in source and binary forms, with or without 8c535eb59SGordon Tetlow.\" modification, are permitted provided that the following conditions 9c535eb59SGordon Tetlow.\" are met: 10c535eb59SGordon Tetlow.\" 1. Redistributions of source code must retain the above copyright 11c535eb59SGordon Tetlow.\" notice, this list of conditions and the following disclaimer. 12c535eb59SGordon Tetlow.\" 2. Redistributions in binary form must reproduce the above copyright 13c535eb59SGordon Tetlow.\" notice, this list of conditions and the following disclaimer in the 14c535eb59SGordon Tetlow.\" documentation and/or other materials provided with the distribution. 15c535eb59SGordon Tetlow.\" 16c535eb59SGordon Tetlow.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17c535eb59SGordon Tetlow.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18c535eb59SGordon Tetlow.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19c535eb59SGordon Tetlow.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20c535eb59SGordon Tetlow.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21c535eb59SGordon Tetlow.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22c535eb59SGordon Tetlow.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23c535eb59SGordon Tetlow.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24c535eb59SGordon Tetlow.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25c535eb59SGordon Tetlow.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26c535eb59SGordon Tetlow.\" SUCH DAMAGE. 27c535eb59SGordon Tetlow.\" 28971c1c42STijl Coosemans.Dd March 11, 2017 29c535eb59SGordon Tetlow.Dt MANPATH 1 30c535eb59SGordon Tetlow.Os 31c535eb59SGordon Tetlow.Sh NAME 32c535eb59SGordon Tetlow.Nm manpath 33c535eb59SGordon Tetlow.Nd display search path for manual pages 34c535eb59SGordon Tetlow.Sh SYNOPSIS 35c535eb59SGordon Tetlow.Nm 36c535eb59SGordon Tetlow.Op Fl Ldq 37c535eb59SGordon Tetlow.Sh DESCRIPTION 38c535eb59SGordon TetlowThe 39c535eb59SGordon Tetlow.Nm 40c535eb59SGordon Tetlowutility determines the user's manual search path from 41c535eb59SGordon Tetlowthe user's 42c535eb59SGordon Tetlow.Ev PATH , 43c535eb59SGordon Tetlowand local configuration files. 44c535eb59SGordon TetlowThis result is echoed to the standard output. 45*d928328fSAlexander Ziaee.Bl -tag -width "-L" 46c535eb59SGordon Tetlow.It Fl L 47c535eb59SGordon TetlowOutput manual locales list instead of the manual path. 48c535eb59SGordon Tetlow.It Fl d 49c535eb59SGordon TetlowPrint extra debugging information. 50c535eb59SGordon Tetlow.It Fl q 51c535eb59SGordon TetlowSuppresses warning messages. 52c535eb59SGordon Tetlow.El 53c535eb59SGordon Tetlow.Sh IMPLEMENTATION NOTES 54c535eb59SGordon TetlowThe 55c535eb59SGordon Tetlow.Nm 56c535eb59SGordon Tetlowutility constructs the manual path from two sources: 57c535eb59SGordon Tetlow.Bl -enum -compact 58c535eb59SGordon Tetlow.It 59c535eb59SGordon TetlowFrom each component of the user's 60c535eb59SGordon Tetlow.Ev PATH 61c535eb59SGordon Tetlowfor the first of: 62c535eb59SGordon Tetlow.Bl -dash -compact 63c535eb59SGordon Tetlow.It 64c535eb59SGordon Tetlow.Pa pathname/man 65c535eb59SGordon Tetlow.It 66c535eb59SGordon Tetlow.Pa pathname/MAN 67c535eb59SGordon Tetlow.It 68c535eb59SGordon TetlowIf pathname ends with /bin: 69971c1c42STijl Coosemans.Pa pathname/../share/man 70971c1c42STijl Coosemansand 71c535eb59SGordon Tetlow.Pa pathname/../man 72c535eb59SGordon Tetlow.El 73c535eb59SGordon Tetlow.It 74c535eb59SGordon TetlowThe configuration files listed in the 75c535eb59SGordon Tetlow.Sx FILES 76c535eb59SGordon Tetlowsection for 77c535eb59SGordon Tetlow.Va MANPATH 78c535eb59SGordon Tetlowentries. 79c535eb59SGordon Tetlow.El 80c535eb59SGordon TetlowThe information from these locations is then concatenated together. 81c535eb59SGordon Tetlow.Pp 82c535eb59SGordon TetlowIf the 83c535eb59SGordon Tetlow.Fl L 84c535eb59SGordon Tetlowflag is set, the 85c535eb59SGordon Tetlow.Nm 86c535eb59SGordon Tetlowutility will search the configuration files listed in the 87c535eb59SGordon Tetlow.Sx FILES 88c535eb59SGordon Tetlowsection for 89c535eb59SGordon Tetlow.Va MANLOCALE 90c535eb59SGordon Tetlowentries. 91c535eb59SGordon Tetlow.Sh ENVIRONMENT 92c535eb59SGordon TetlowThe following environment variables affect the execution of 93c535eb59SGordon Tetlow.Nm : 94*d928328fSAlexander Ziaee.Bl -tag -width "MANLOCALES" 95c535eb59SGordon Tetlow.It Ev MANLOCALES 96c535eb59SGordon TetlowIf set with the 97c535eb59SGordon Tetlow.Fl L 98c535eb59SGordon Tetlowflag, causes the utility to display a warning and the value, overriding any 99c535eb59SGordon Tetlowother configuration found on the system. 100c535eb59SGordon Tetlow.It Ev MANPATH 101c535eb59SGordon TetlowIf set, causes the utility to display a warning and the value, overriding 102c535eb59SGordon Tetlowany other configuration found on the system. 103c535eb59SGordon Tetlow.It Ev PATH 104c535eb59SGordon TetlowInfluences the manual path as described in the 105c535eb59SGordon Tetlow.Sx IMPLEMENTATION NOTES . 106c535eb59SGordon Tetlow.El 107c535eb59SGordon Tetlow.Sh FILES 108*d928328fSAlexander Ziaee.Bl -tag -width "/usr/local/etc/man.d/*.conf" -compact 109c535eb59SGordon Tetlow.It Pa /etc/man.conf 110c535eb59SGordon TetlowSystem configuration file. 111c535eb59SGordon Tetlow.It Pa /usr/local/etc/man.d/*.conf 112c535eb59SGordon TetlowLocal configuration files. 113c535eb59SGordon Tetlow.El 114c535eb59SGordon Tetlow.Sh SEE ALSO 115c535eb59SGordon Tetlow.Xr apropos 1 , 116c535eb59SGordon Tetlow.Xr man 1 , 117e809783dSChristian Brueffer.Xr whatis 1 , 118e809783dSChristian Brueffer.Xr man.conf 5 119