From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#38243: Zsh does not load /etc/profile values by default Date: Sun, 17 Nov 2019 22:42:14 +0100 Message-ID: <878soei3ih.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39945) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWSK1-0000FW-0s for bug-guix@gnu.org; Sun, 17 Nov 2019 16:43:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWSK0-0003Qb-1M for bug-guix@gnu.org; Sun, 17 Nov 2019 16:43:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34009) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iWSJz-0003QQ-UH for bug-guix@gnu.org; Sun, 17 Nov 2019 16:43:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iWSJz-0002g3-P9 for bug-guix@gnu.org; Sun, 17 Nov 2019 16:43:03 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Danny O'Brien's message of "Sat, 16 Nov 2019 23:14:24 -0800") 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 O'Brien Cc: 38243@debbugs.gnu.org Hi Danny, "Danny O'Brien" skribis: > Right now, an installation of zsh as a primary shell won't read in the > environmental settings in /etc/profile -- it looks for (but doesn't > find) a /etc/zprofile file instead. > > 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'm not sure what status /etc/profile holds in Guix -- is it the > canonical location for any user-wide environment settings?=20 There=E2=80=99s also /etc/environment, honored by =E2=80=98pam_env=E2=80=99= , and thus shell-independent. > Will it be guaranteed to be POSIXly correct, rather than having any > bashisms? It=E2=80=99s meant to be POSIX. If you notice Bash-specific constructs, we= can surely remove those (I see a couple of =E2=80=9Cexport VAR=3Dvalue=E2=80=9D= , which is not POSIX, but maybe Zsh supports it?). Let us know what=E2=80=99s needed! Thanks, Ludo=E2=80=99.