According to the manual page for man (at least on a Centos linux
system), if MANPATH is not set, man searches according to the rules in
However, if MANPATH is set, it over-rides the rules in /etc/man.config.
I'd like to do something like
setenv MANPATH $MANPATH:/another/path
and KEEP the defaults defined in /etc/man.config
However, setting MANPATH overrides whatever is defined in
I don't want to edit /etc/man.config because this script will be
tailored for various individuals (i.e., userA is using compilerA,
I want the script to add the path to compilerA to his MANPATH, but doing
this overrides the default paths in /etc/man.config so now he can't even
do a "man ls")
How can I accomplish what I'm trying to do?