[gmx-users] GMXRC removes trailing colon from existing MANPATH

Peter Kroon p.c.kroon at rug.nl
Fri Jul 27 14:28:33 CEST 2018

Hi all,

I noticed that sourcing GMXRC removes any trailing colons from a set
MANPATH environment variable. This colon *is* syntactically significant,
and removing it causes `mandb` to ignore /etc/manpath.config instead of
appending that file:

> unset MANPATH
> export MANPATH=/opt/puppetlabs/puppet/share/man:
> # Note the trailing colon
> echo $MANPATH
> mandb
mandb: warning: $MANPATH set, appending /etc/manpath.config
> source /usr/local/gromacs-2018.1/bin/GMXRC
> # No more trailing colon
> echo $MANPATH
> /usr/local/gromacs-2018.1/share/man:/opt/puppetlabs/puppet/share/man
mandb: warning: $MANPATH set, ignoring /etc/manpath.config

Should I also report this on redmine, or is this sufficient?


More information about the gromacs.org_gmx-users mailing list