From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Prikler Subject: bug#38243: Zsh does not load /etc/profile values by default Date: Sun, 17 Nov 2019 14:21:58 +0100 Message-ID: <02c4cef07e9f519697b9bbe9c6ab116fa2e2a404.camel@student.tugraz.at> References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47523) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWKW7-0007xZ-I7 for bug-guix@gnu.org; Sun, 17 Nov 2019 08:23:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWKW6-0004Ol-Ig for bug-guix@gnu.org; Sun, 17 Nov 2019 08:23:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59880) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iWKW6-0004Od-5T for bug-guix@gnu.org; Sun, 17 Nov 2019 08:23:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iWKW5-0005gh-Tc for bug-guix@gnu.org; Sun, 17 Nov 2019 08:23:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: CAAkY2scspbLnrX2Ufg10_w2SvkwdFqtDO7Xbm0oyw0BthgPhtg@mail.gmail.com List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: danny@spesh.com Cc: 38243@debbugs.gnu.org > 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