Lastly I looked at the patch - it looks good. Just one note: $TDEDIR/share/man is "added" to the MANPATH, even when empty. But instead of direct testing MANPATH probably should be checked output from call `manpath`.
MANPATH test added.
Merged upstream in GIT hash 398ef116.
Thank you!
Darrell