On a Scientific Linux 5.5 installation the $MANPATH is not set. I've got environment modules installed, this might cause an overwriting of the $MANPATH, but I'm not sure about that. So my main question is: At which point is the /etc/man.config interpreted to form the $MANPATH? Does it the bash-shell by itself (hardcoded) or is it a file that is sourced at logintime, e.g. /etc/profile? I can't find any dependency under /etc in any file for /etc/man.config.
This reason why I think the environment modules are messing with the $MANPATH is that after logging in to the system the only entry is:
# manpath
/cm/local/apps/environment-modules/3.2.6/man
EDIT:
In the meantime and regarding to the first answer I tried this:
# find . -type f -exec fgrep -l -i manpath {} \;
./profile.d/man.sh
./profile.d/man.csh
./man.config
Well, this is the content of
# cat /etc/profile.d/man.sh
export MANPATH=:ignore:/cm/local/apps/environment-modules/3.2.6/man
If I remove this file, at least "/usr/man" appears in the $MANPATH, but this is only the tip of the iceberg of what is defined in the /etc/man.config . So I think /etc/man.config is still not completely handled. Changing /etc/profile.d/man.sh to the following had no effect:
# cat /etc/profile.d/man.sh
export MANPATH=:ignore:/cm/local/apps/environment-modules/3.2.6/man:$MANPATH
# echo $MANPATH
ignore:/cm/local/apps/environment-modules/3.2.6/man: