Thanks for your reply. I have the same settings in those three files, except that I commented out the line in /etc/profile. The reason is this: in /usr/lib/man.conf I have
Code:
# Every automatically generated MANPATH includes these fields
#
MANPATH /usr/man
MANPATH /usr/share/man
MANPATH /usr/local/man
MANPATH /usr/local/share/man
MANPATH /usr/X11R6/man
#
If I leave the line in /etc/profile uncommented, then I lose these five paths, in accordance with man's man. And with it commented out, here's what happens:
Code:
bash-3.1$ echo $MANPATH
:/usr/lib/java/man:/usr/share/texmf/man
bash-3.1$ man -w
/usr/local/share/man:/usr/share/man:/usr/man:/usr/lib/java/man:/usr/share/texmf/man:/usr/local/man:/usr/X11R6/man
bash-3.1$
which satisfactory for me, but seems to contradict the manual. That is, when seeing MANPATH set and not empty, man shouldn't read /usr/lib/man.conf.
Anyways, your post puts it clearly, and that's good enough for me. Thanks again.