GNU bug report logs - #41666
$INFOPATH should end with a colon

Previous Next

Package: guix;

Reported by: Jonas Bernoulli <jonas <at> bernoul.li>

Date: Tue, 2 Jun 2020 17:46:01 UTC

Severity: normal

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jonas Bernoulli <jonas <at> bernoul.li>
To: bug-guix <at> gnu.org
Subject: $INFOPATH should end with a colon
Date: Tue, 02 Jun 2020 19:44:17 +0200
On a foreign distro Guix installs /etc/profile.d/guix.sh, which among
other things adds the directory where it installs info pages to the
INFOPATH variable.

It takes care to not accidentally cause the value to end with a colon.
Unfortunately it should do the opposite because a trailing colon means
"... and also the default locations", which is highly desirable.

This is documented in (info "(texinfo)Other Info Directories"):

>    However you set 'INFOPATH', if its last character is a colon (on
> MS-DOS/MS-Windows systems, use a semicolon instead), this is replaced by
> the default (compiled-in) path.  This gives you a way to augment the
> default path with new directories without having to list all the
> standard places.  For example (using 'sh' syntax):
>
>      INFOPATH=/home/bob/info:
>      export INFOPATH
>
> will search '/home/bob/info' first, then the standard directories.
> Leading or doubled colons are not treated specially.

I recommend you just make this simple change:

-  export INFOPATH="$_GUIX_PROFILE/share/info${INFOPATH:+:}$INFOPATH"
+  export INFOPATH="$_GUIX_PROFILE/share/info$:$INFOPATH"

If INFOPATH is already set and does not end with a colon, then that
should be left as-is; it might be intentional.




This bug report was last modified 4 years and 349 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.