On Nov 17, 2003, at 18:31, John Labovitz wrote:


On Nov 16, 2003, at 6:45 PM, Vic Norton wrote:

I'm sorry about the confusion, Morbus. My ".bash_profile" contains the line
MANPATH=/usr/share/man:/man:/usr/X11R6/man:~/man
The "set" command, with no parameters, reproduces this as
MANPATH=/usr/share/man:/man:/usr/X11R6/man:/Users/vic/man
Regardless, I cannot see manuals in either
/man or /usr/X11R6/man
and "manpath" still produces
/usr/share/man:/Users/vic/man


My conclusion, in bash the value of the variable MANPATH has no effect
whatsoever on "man". Maybe bash doesn't need "setenv", but, so far, it
can't tell "man" where to look either.

Apparently we're not supposed to set $MANPATH anymore. There's a "manpath" command that "man" calls to automatically figure out the paths (from "man manpath"):


Manpath is used by man(1) to determine the search path, so users normally
don't need to set the MANPATH environment variable directly.


If you *do* set $MANPATH, "manpath" just echoes that, without doing its searching.

There is an /etc/manpath.config file that lets you expand the default places that "manpath" searches. On closer looking, and doing several searches across my whole system looking for manpages, I found that I needed to add the following lines:

        OPTIONAL_MANPATH        /opt/local/share/man
        OPTIONAL_MANPATH        /usr/local/share/man

The /opt/local reference is because I use Darwinports, which (like fink) puts all its installed files into its own directory. (Note that I have actually changed /usr/bin/perl to point to /opt/bin/perl, which may mean that a lot of what I've written may not be true on your system. ;)


FWIW, DarwinPorts now installs a symlink from ${prefix}/share/man to ${prefix}/man to keep manpath happy.

Michael

--
Michael Maibaum
internet: [EMAIL PROTECTED]    |    http://mike.maibaum.org
voice:     [m] 07958 604025        |


-- Michael Maibaum internet: [EMAIL PROTECTED] | http://mike.maibaum.org voice: [m] 07958 604025 |


-- Michael Maibaum internet: [EMAIL PROTECTED] | http://mike.maibaum.org voice: [m] 07958 604025 |



Reply via email to