Project

General

Profile

Bug #2628

GMXRC removes trailing colon from existing MANPATH

Added by Peter Kroon about 1 year ago. Updated about 1 year ago.

Status:
Fix uploaded
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

Hi all,

I also posted this to the gmx userlist some time ago, and was told to make an issue here. Here's the description of the problem:

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:
  1. Note the trailing colon
    echo $MANPATH

/opt/puppetlabs/puppet/share/man:

mandb

mandb: warning: $MANPATH set, appending /etc/manpath.config
...

source /usr/local/gromacs-2018.1/bin/GMXRC
  1. 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
...

History

#1 Updated by Gerrit Code Review Bot about 1 year ago

Gerrit received a related patchset '1' for Issue #2628.
Uploader: Paul Bauer ()
Change-Id: gromacs~master~I1438bcb6e5f3acfcc72ef5675f37c0b2fe2ec8d6
Gerrit URL: https://gerrit.gromacs.org/8260

#2 Updated by Paul Bauer about 1 year ago

  • Status changed from New to Fix uploaded

Also available in: Atom PDF