MANPATH not handled correctly

Simon J. Gerraty sjg at juniper.net
Tue Jan 10 01:22:16 UTC 2017


Steve Kargl <sgk at troutmask.apl.washington.edu> wrote:

> MANPATH is not handled correctly.  According to the documentation
> in apropos(1) and whatis(1):

Can you clarify where you are seeing this documentation?
I don't see it in 7.x 10.x or current.

Eg, in 10.2 apropos(1) says only:

ENVIRONMENT
     The following environment variables affect the execution of
     apropos:

     MANLOCALES, MANPATH, PATH
                 Used to find the location of the whatis database
                 files. See manpath(1) for additional information.

     PAGER  Program used to display files.  If unset, more -s is used.


> 
>   MANPATH   The standard search path used by man(1) may be changed by
>             specifying a path in the MANPATH environment variable.  Invalid
>             paths, or paths without manual databases, are ignored.
>             Overridden by -M.  If MANPATH begins with a colon, it is
>             appended to the default list; if it ends with a colon, it is
>             prepended to the default list; or if it contains two adjacent
>             colons, the standard search path is inserted between the
>             colons.  If none of these conditions are met, it overrides the
>             standard search path.


More information about the freebsd-doc mailing list