GMXRC seems to break the rest of man pages

GROMACS version: 2020.5
GROMACS modification: No

In Ubuntu 18.04.5 LTS (Bionic Beaver) using the bash terminal when I source GMXRC the man-path seems to be altered and the man command stops working:

>> manpath
>> source GMXRC
>> manpath
manpath: warning: $MANPATH set, ignoring /etc/manpath.config
>> man ls
No manual entry for ls
See 'man 7 undocumented' for help when manual pages are not available.

Shouldn’t it append to MANPATH rather than substitute.

Thank you very much! And keep up the great work :)

Hi Sergio,

This is already adressed in:

OK, so I guess this addressed in future versions. A quick work around:

man_path= $(manpath)
source GMXRC
export MANPATH=$man_path:$MANPATH

Thanks a lot Christian!

The most important thing is the colon at the start of MANPATH to trigger appending defaults. Usually it’s not set, so that even export MANPATH=:$MANPATH should work.