Project

General

Profile

Bug #3219

MANPATH setting is fragile

Added by Jellby empty about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Affected version - extra info:
Affected version:
Difficulty:
simple
Close

Description

In Ubuntu 18.04, with TeXLive, I have:

$ echo $MANPATH
:/usr/local/texlive/2019/texmf-dist/doc/man

After sourcing GMXRC.bash:

$ . /usr/local/gromacs/bin/GMXRC.bash
$ echo $MANPATH
/usr/local/gromacs/share/man:/usr/local/texlive/2019/texmf-dist/doc/man
$ man bash
No manual entry for bash
See 'man 7 undocumented' for help when manual pages are not available.

It seems GMXRC.bash assumes that MANPATH will be empty or end with a colon, but in my case it starts with a colon.

See #2628 and https://mailman-1.sys.kth.se/pipermail/gromacs.org_gmx-users/2007-January/025471.html, and man manpath.

Also available in: Atom PDF