* bug#41666: $INFOPATH should end with a colon
@ 2020-06-02 17:44 Jonas Bernoulli
2020-06-02 18:15 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
0 siblings, 1 reply; 2+ messages in thread
From: Jonas Bernoulli @ 2020-06-02 17:44 UTC (permalink / raw)
To: 41666
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-02 18:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-02 17:44 bug#41666: $INFOPATH should end with a colon Jonas Bernoulli
2020-06-02 18:15 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).