GNU bug report logs - #38243
Zsh does not load /etc/profile values by default

Previous Next

Package: guix;

Reported by: "Danny O'Brien" <danny <at> spesh.com>

Date: Sun, 17 Nov 2019 07:15:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Leo Prikler <leo.prikler <at> student.tugraz.at>
To: danny <at> spesh.com
Cc: 38243 <at> debbugs.gnu.org
Subject: bug#38243: Zsh does not load /etc/profile values by default
Date: Sun, 17 Nov 2019 14:21:58 +0100
> I'm not sure what status /etc/profile holds in Guix -- is it the
> canonical location for any user-wide environment settings? Will it
> be 
> guaranteed to be POSIXly correct, rather than having any bashisms?
It is currently not and I'm not sure whether it will be.  The current
behaviour is known to cause problems with fish, though, so a proper
solution would be appreciated.  The real culprit seems likely to be
$GUIX_PROFILE/etc/profile, which are sourced by /etc/profile.  As far
as zsh is concerned, it does seem to work despite the bashisms, as long
as you can get it to source /etc/profile.

> Not sure what the correct approach should be here. We could symlink
> /etc/zprofile to /etc/profile , but that would require knowing that
> /etc/profile was always available. Or we could include a source'ing
> of
> /etc/profile in /etc/zprofile.
I'd rather generate a separate file.  In zsh, you would also have to
expand fpath to include Guix' autocompletion stuff, which works out of
the box for bash.  Given the aforementioned bashisms in
$GUIX_PROFILE/etc/profile, we may also want to keep a
$GUIX_PROFILE/etc/zprofile, although ideally we would make our profiles
POSIXly correct instead.

Regards,
Leo





This bug report was last modified 5 years and 188 days ago.

Previous Next


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