Hi, my man stopped working. I don't know which package broke it... Now all I get is: bash-2.05a$ man write sh: -c: line 1: syntax error near unexpected token `)' sh: -c: line 1: `(cd /usr/man && (echo ".pl 1100i"; gzip -c -d '/usr/man/man1/write.1.gz'; echo; echo ".pl \n(nlu+10") | nroff -mandoc | )' Error executing formatting or display command. System command (cd /usr/man && (echo ".pl 1100i"; gzip -c -d '/usr/man/man1/write.1.gz'; echo; echo ".pl \n(nlu+10") | nroff -mandoc | ) exited with status 2. No manual entry for write
David, could you do a bit more research? What packages did you merge recently? We really need more information to track down this bug.
Looks to me that you are missing nroff
Version: sys-apps/man-1.5i-r1 after 'nroff -mandoc | ' should there be a '/usr/bin/less -is'. It is missing the default expantion of MANPAGER: MANPAGER If MANPAGER is set, its value is used as the name of the program to use to display the man page. If not, then PAGER is used. If that has no value either, /usr/bin/less -is is used. Setting "export MANPAGER='/usr/bin/less -is'" and it works!
OK. Was MANAPAGER set in your shell before? How about PAGER? I'd like to track this down.
It looks like PAGER needs to be set in /etc/man.conf. If neither PAGER nor MANPAGER are set in the user's environment, man falls back onto the PAGER setting in /etc/man.conf. Changing (line 83 on my system): PAGER to PAGER /usr/bin/less -is fixes the problem.
fixed on cvs