Red Hat Bugzilla – Bug 193594
Man command doesn't read /etc/man.config for manpath
Last modified: 2007-11-30 17:11:34 EST
Description of problem:
I added a file to /usr/local/share/man/man1 (call it foo.1), but typing 'man
foo' doesn't display it.
Version-Release number of selected component (if applicable):
All the time
Steps to Reproduce:
1. mkdir -p /usr/local/share/man/man1
2. cp testfile.1 /usr/local/share/man/man1
3. chmod -R a+rX /usr/local/share/man
4. vi /etc/man.config (make sure /usr/local/share/man is in MANPATH)
5. man testfile
6. man -w
No manual entry for testfile
Manpage for testfile should show up, man -w/manpath should show
Initially I thought it was due to my LANG being set to POSIX, but changing it
back to en_US.UTF-8 had no effect.
The command "strace -fo/tmp/a manpath" shows that manpath is reading
/etc/man.config, but not actually checking to see if /usr/local/share/man is
Could you please attach the output of command `man -w -d` and your man.config file.
Created attachment 130678 [details]
Man -w -d output
Created attachment 130679 [details]
man behavior is right. It seems you have nonstandart setting -
The set of paths which is man looking for man pages depends on enviroment
variables. It seems you have set variable MANPATH to "/usr/share/man" which
causes this behavior.