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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: "Danny O'Brien" <danny@HIDDEN>; dated Sun, 17 Nov 2019 07:15:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 38243 <at> debbugs.gnu.org:


Received: (at 38243) by debbugs.gnu.org; 8 Dec 2019 06:16:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 08 01:16:13 2019
Received: from localhost ([127.0.0.1]:50378 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1idprZ-0001hN-Ew
	for submit <at> debbugs.gnu.org; Sun, 08 Dec 2019 01:16:13 -0500
Received: from mail-lf1-f50.google.com ([209.85.167.50]:43124)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannyobrien@HIDDEN>) id 1idprW-0001bZ-FF
 for 38243 <at> debbugs.gnu.org; Sun, 08 Dec 2019 01:16:11 -0500
Received: by mail-lf1-f50.google.com with SMTP id 9so8243828lfq.10
 for <38243 <at> debbugs.gnu.org>; Sat, 07 Dec 2019 22:16:10 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=+BV3DdhtjsOik+6pxrM1uru7Ha44ykTQZngjwDbRv90=;
 b=TOsjPgKIkEumoxagMLoxwlvQcQZM+0Zat3NkcL46W2tmr98bVnOT1dI80HU2sawrdB
 07IbNKFOHZUNT8LvOA5cycf9ABHk8rkCGBBGZKlbjB5+8lb073NRhvSaKE8pyYKqnFr3
 o3HrrfoVCTDxHttEjiLQUU8jSRCOzLo1llRU7v5jItAGp3VEcIRtDKz0p0yWSO3ahk3q
 L57AMLh34yJMvwbC4ztW6gRZn6thzE9LPLNg26Gold60p8izC1cQOdmIndITS3mZXlYe
 QfpIBHrnlACqNbkdU9QBssOEPp8Csuq6wkZ58JM51utF/3S1SeVT8yLFc9FIPbf1tvE5
 txBg==
X-Gm-Message-State: APjAAAXmKBR4ySmvIRvT1XpT/eFa4PYWRZ8mXgcvzsrjnQVJ/8BoHL0y
 B4q39ZlcYOC5j0CIlVbnD0Q69sBMnGHPfXw7lGQbmHc=
X-Google-Smtp-Source: APXvYqzh8v1XYWq+7S2GaxvYBGRhDHkbUaE/G1Lu3RjJP04alB5QmZkwQPhOovBFdb/AxTfuJP3pNvXaTDr3EXc9dH0=
X-Received: by 2002:ac2:4c98:: with SMTP id d24mr1997303lfl.138.1575785764321; 
 Sat, 07 Dec 2019 22:16:04 -0800 (PST)
MIME-Version: 1.0
References: <02c4cef07e9f519697b9bbe9c6ab116fa2e2a404.camel@HIDDEN>
In-Reply-To: <02c4cef07e9f519697b9bbe9c6ab116fa2e2a404.camel@HIDDEN>
From: "Danny O'Brien" <danny@HIDDEN>
Date: Sat, 7 Dec 2019 22:15:53 -0800
Message-ID: <CAAkY2sdQN9Vczi=5_a_-=tZU8kwnd+Mhen--Lh_3maCu7NfaVQ@HIDDEN>
Subject: Re: bug#38243: Zsh does not load /etc/profile values by default
To: Leo Prikler <leo.prikler@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000b9813b05992b3636"
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 38243
Cc: 38243 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

--000000000000b9813b05992b3636
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, Nov 17, 2019 at 5:22 AM Leo Prikler <leo.prikler@HIDDEN>
wrote:

> > 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 took a closer look at this, and currently Zsh users have /etc/profile
included in their environment by virtue of a default $HOME/.zprofile, which
is created in their home directory when they are created (via `useradd` and
/etc/skel ).

I'm a little stuck to know what to do here -- if we source /etc/profile in
/etc/zprofile, then we risk sourcing it twice for users who have the
current default ~/.zprofile already in their home directories`. OTOH, if
users come to Guix System with their own pre-existing home directory, then
they may well struggle --- as I did -- because important environment
variables aren't set by their established ~/.zshrc, ~/.zprofile or
~/.zlogin setups.

I *think* the right thing to do is to drop the current /etc/skel/.zprofile
and establish that /etc/zprofile (and other shells) should source
/etc/profile . Guix System does a lot of setup in /etc/profile including
including $GUIX_PROFILE/etc/profile.  It would be best if this
automatically happened, whatever is going on in individual home
directories. I'm a Guix newbie though, so I'm happy to take advice!
Archlinux has a one-line /etc/zprofile which sources /etc/profile ; Debian
does not; I have not checked other distributions, but I could.

A couple of Guix commits where the current behavior was established:

commit 2f4d43584cb26315c028dfbd2197da0d175933a2
Author: Chris Marusich <cmmarusich@HIDDEN>
Date:   Sat Oct 13 22:50:36 2018 -0700

    system: Rename .zlogin to .zprofile.

    Reported by Meiyo Peng <meiyo.peng@HIDDEN>.

    * gnu/system/shadow.scm (default-skeletons): Rename zlogin to zprofile.

commit 02f707c590fa3c5bbd74168468bf561b47317f71
Author: Sou Bunnbu (=E5=AE=8B=E6=96=87=E6=AD=A6) <iyzsong@HIDDEN>
Date:   Fri Dec 5 21:17:49 2014 +0800

    system: Add skeleton '.zlogin'.

    * gnu/system/shadow.scm (default-skeletons): Add .zlogin.

Best,

d.

--000000000000b9813b05992b3636
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Sun, Nov 17, 2019 at 5:22 AM Leo P=
rikler &lt;<a href=3D"mailto:leo.prikler@HIDDEN">leo.prikler@stu=
dent.tugraz.at</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd=
ing-left:1ex">
&gt; Not sure what the correct approach should be here. We could symlink<br=
>
&gt; /etc/zprofile to /etc/profile , but that would require knowing that<br=
>
&gt; /etc/profile was always available. Or we could include a source&#39;in=
g<br>
&gt; of<br>
&gt; /etc/profile in /etc/zprofile.<br></blockquote><div><br></div><div>I t=
ook a closer look at this, and currently Zsh users have /etc/profile includ=
ed in their environment by virtue of a default $HOME/.zprofile, which is cr=
eated in their home directory when they are created (via `useradd` and /etc=
/skel ).</div><div><br></div><div>I&#39;m a little stuck to know what to do=
 here -- if we source /etc/profile in /etc/zprofile, then we risk sourcing =
it twice for users who have the current default ~/.zprofile already in thei=
r home directories`. OTOH, if users come to Guix System with their own pre-=
existing home directory, then they may well struggle --- as I did -- becaus=
e important environment variables aren&#39;t set by their established ~/.zs=
hrc, ~/.zprofile or ~/.zlogin setups.</div><div><br></div><div>I *think* th=
e right thing to do is to drop the current /etc/skel/.zprofile and establis=
h that /etc/zprofile (and other shells) should source /etc/profile . Guix S=
ystem does a lot of setup in /etc/profile including including $GUIX_PROFILE=
/etc/profile.=C2=A0 It would be best if this automatically happened, whatev=
er is going on in individual home directories. I&#39;m a Guix newbie though=
, so I&#39;m happy to take advice!=C2=A0 Archlinux has a one-line /etc/zpro=
file which sources /etc/profile ; Debian does not; I have not checked other=
 distributions, but I could.</div><div><br></div><div>A couple of Guix comm=
its where the current behavior was established:</div><div><br></div><div>co=
mmit 2f4d43584cb26315c028dfbd2197da0d175933a2<br>Author: Chris Marusich &lt=
;<a href=3D"mailto:cmmarusich@HIDDEN">cmmarusich@HIDDEN</a>&gt;<br>Da=
te: =C2=A0 Sat Oct 13 22:50:36 2018 -0700<br><br>=C2=A0 =C2=A0 system: Rena=
me .zlogin to .zprofile.<br>=C2=A0 =C2=A0 <br>=C2=A0 =C2=A0 Reported by Mei=
yo Peng &lt;<a href=3D"mailto:meiyo.peng@HIDDEN">meiyo.peng@HIDDEN</a=
>&gt;.<br>=C2=A0 =C2=A0 <br>=C2=A0 =C2=A0 * gnu/system/shadow.scm (default-=
skeletons): Rename zlogin to zprofile.</div><div><br></div><div>commit 02f7=
07c590fa3c5bbd74168468bf561b47317f71<br>Author: Sou Bunnbu (=E5=AE=8B=E6=96=
=87=E6=AD=A6) &lt;<a href=3D"mailto:iyzsong@HIDDEN">iyzsong@HIDDEN</a=
>&gt;<br>Date: =C2=A0 Fri Dec 5 21:17:49 2014 +0800<br><br>=C2=A0 =C2=A0 sy=
stem: Add skeleton &#39;.zlogin&#39;.<br>=C2=A0 =C2=A0 <br>=C2=A0 =C2=A0 * =
gnu/system/shadow.scm (default-skeletons): Add .zlogin.</div><div><br></div=
><div>Best,</div><div><br></div><div>d.<br></div></div></div>

--000000000000b9813b05992b3636--




Information forwarded to bug-guix@HIDDEN:
bug#38243; Package guix. Full text available.

Message received at 38243 <at> debbugs.gnu.org:


Received: (at 38243) by debbugs.gnu.org; 17 Nov 2019 21:42:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 17 16:42:24 2019
Received: from localhost ([127.0.0.1]:42830 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iWSJM-0002f6-8m
	for submit <at> debbugs.gnu.org; Sun, 17 Nov 2019 16:42:24 -0500
Received: from eggs.gnu.org ([209.51.188.92]:59024)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iWSJK-0002er-7k
 for 38243 <at> debbugs.gnu.org; Sun, 17 Nov 2019 16:42:22 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:42103)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iWSJE-0002Sy-Lk; Sun, 17 Nov 2019 16:42:16 -0500
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52828 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1iWSJE-0005eq-7T; Sun, 17 Nov 2019 16:42:16 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: "Danny O'Brien" <danny@HIDDEN>
Subject: Re: bug#38243: Zsh does not load /etc/profile values by default
References: <CAAkY2scspbLnrX2Ufg10_w2SvkwdFqtDO7Xbm0oyw0BthgPhtg@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 27 Brumaire an 228 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Sun, 17 Nov 2019 22:42:14 +0100
In-Reply-To: <CAAkY2scspbLnrX2Ufg10_w2SvkwdFqtDO7Xbm0oyw0BthgPhtg@HIDDEN>
 (Danny O'Brien's message of "Sat, 16 Nov 2019 23:14:24 -0800")
Message-ID: <878soei3ih.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38243
Cc: 38243 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Danny,

"Danny O'Brien" <danny@HIDDEN> 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.




Information forwarded to bug-guix@HIDDEN:
bug#38243; Package guix. Full text available.

Message received at 38243 <at> debbugs.gnu.org:


Received: (at 38243) by debbugs.gnu.org; 17 Nov 2019 13:22:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 17 08:22:09 2019
Received: from localhost ([127.0.0.1]:40468 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iWKVF-0005fS-A2
	for submit <at> debbugs.gnu.org; Sun, 17 Nov 2019 08:22:09 -0500
Received: from mailrelay.tugraz.at ([129.27.2.202]:8483)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo.prikler@HIDDEN>) id 1iWKVC-0005fI-JL
 for 38243 <at> debbugs.gnu.org; Sun, 17 Nov 2019 08:22:07 -0500
Received: from nijino.local (194-96-102-81.hdsl.highway.telekom.at
 [194.96.102.81])
 by mailrelay.tugraz.at (Postfix) with ESMTPSA id 47GCRZ3KT7z1LWp5;
 Sun, 17 Nov 2019 14:22:02 +0100 (CET)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 47GCRZ3KT7z1LWp5
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at;
 s=mailrelay; t=1573996922;
 bh=C+xdi4Iiy9hy/aMU4bLNo252GFcC5gBJzp9v2rx7yEk=;
 h=Subject:From:To:Cc:Date:In-Reply-To:From;
 b=C6G96KJ8ILW8wkpTsVX1DMcUkVQhLBWX0uTigmR+9+Xk+iEWcNExU39E1co8HXaFx
 ZQF7cqT8CCuAUFV8hpkn1xXtJJlGonZ8qEZwbh+wNn1OPGso4JK+0j0VIND6TJ8e3z
 QUmgSiDvYFf51mFVihoVJj9xe4WZcozWNph4lPQA=
Message-ID: <02c4cef07e9f519697b9bbe9c6ab116fa2e2a404.camel@HIDDEN>
Subject: bug#38243: Zsh does not load /etc/profile values by default
From: Leo Prikler <leo.prikler@HIDDEN>
To: danny@HIDDEN
Date: Sun, 17 Nov 2019 14:21:58 +0100
In-Reply-To: CAAkY2scspbLnrX2Ufg10_w2SvkwdFqtDO7Xbm0oyw0BthgPhtg@HIDDEN
Content-Type: text/plain; charset="UTF-8"
User-Agent: Evolution 3.30.5 
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw
X-Spam-Scanner: SpamAssassin 3.003001 
X-Spam-Score-relay: -1.9
X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38243
Cc: 38243 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> 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





Information forwarded to bug-guix@HIDDEN:
bug#38243; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Nov 2019 07:14:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 17 02:14:45 2019
Received: from localhost ([127.0.0.1]:40089 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iWElg-0002lg-Ti
	for submit <at> debbugs.gnu.org; Sun, 17 Nov 2019 02:14:45 -0500
Received: from lists.gnu.org ([209.51.188.17]:33714)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannyobrien@HIDDEN>) id 1iWEld-0002lX-AA
 for submit <at> debbugs.gnu.org; Sun, 17 Nov 2019 02:14:41 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:48235)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <dannyobrien@HIDDEN>) id 1iWElc-0003f6-4F
 for bug-guix@HIDDEN; Sun, 17 Nov 2019 02:14:41 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dannyobrien@HIDDEN>) id 1iWEla-00084n-QS
 for bug-guix@HIDDEN; Sun, 17 Nov 2019 02:14:40 -0500
Received: from mail-lj1-f169.google.com ([209.85.208.169]:40835)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <dannyobrien@HIDDEN>)
 id 1iWEla-000847-Je
 for bug-guix@HIDDEN; Sun, 17 Nov 2019 02:14:38 -0500
Received: by mail-lj1-f169.google.com with SMTP id q2so15192043ljg.7
 for <bug-guix@HIDDEN>; Sat, 16 Nov 2019 23:14:38 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=Ou5D7TpfiWJt/U21Wpk0sX4fxLPnrrC8zHEZV7dA66o=;
 b=AkIl+cW7dvSScMp2Ks8af34kYmtXKfnlOHf6kw2BLV2DPYmVJjTTG5urZZqxGj54RY
 HnSUx92vuAkv5cmsIV+vKMs0LdPhVr6krWcOw9sVN5ChO3U18F5EuGU4GQWXX5yMhO9s
 7K+JZRJnRuSTM0AMmuiF6quRqrMP2hfjgmqCUre8StWiaASChPJxo0qT0wjfGkeE4kU4
 kD7jAJY+07HHAW2q6zdtSOIuY9fYxP9g3ll99qEJ8+Ij1E/1MHBjqjfCuqiWFDSnzhtQ
 ZxpXSs0kjwakFcGCtaj2mHCWpjvqKtmJPrzCvODdYL2wWDVYcKlNbBsooQ3GjJebfiGD
 qL+A==
X-Gm-Message-State: APjAAAXt2RNpra0/8/IDNgjN2iHwW8lXNCdwAbXwuPnWBFbavdCF3+iO
 OTB74lY6tb0BTXszkpeNCIkifPyztyVOL63laqSVkvUIZeUP
X-Google-Smtp-Source: APXvYqxjfikTtqoVVz3R9kUtXrKsnK9TqIoaBz/gTRKGV60gqBxqrnj4VeR+9Qx1g8IJmMP9u7dK++VCA4zp6pwvlIw=
X-Received: by 2002:a2e:9a53:: with SMTP id k19mr16024665ljj.246.1573974876473; 
 Sat, 16 Nov 2019 23:14:36 -0800 (PST)
MIME-Version: 1.0
From: "Danny O'Brien" <danny@HIDDEN>
Date: Sat, 16 Nov 2019 23:14:24 -0800
Message-ID: <CAAkY2scspbLnrX2Ufg10_w2SvkwdFqtDO7Xbm0oyw0BthgPhtg@HIDDEN>
Subject: Zsh does not load /etc/profile values by default
To: bug-guix@HIDDEN
Content-Type: multipart/alternative; boundary="00000000000065ce0205978595c7"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 209.85.208.169
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  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' [...] 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (dannyobrien[at]gmail.com)
 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level
 mail domains are different
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
 medium trust [209.51.188.17 listed in list.dnswl.org]
 0.0 HTML_MESSAGE           BODY: HTML included in message
 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and
 EnvelopeFrom freemail headers are different
 2.0 SPOOFED_FREEMAIL       No description available.
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

--00000000000065ce0205978595c7
Content-Type: text/plain; charset="UTF-8"

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? Will it be
guaranteed to be POSIXly correct, rather than having any bashisms?

Thanks for your work,

d.

--00000000000065ce0205978595c7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br>Right now, an installation of zsh as a primary shell w=
on&#39;t read in the<br>environmental settings in /etc/profile -- it looks =
for (but doesn&#39;t<br>find) a /etc/zprofile file instead.<br><br>Not sure=
 what the correct approach should be here. We could symlink<br>/etc/zprofil=
e to /etc/profile , but that would require knowing that<br>/etc/profile was=
 always available. Or we could include a source&#39;ing of<br>/etc/profile =
in /etc/zprofile.<br><br>I&#39;m not sure what status /etc/profile holds in=
 Guix -- is it the<br>canonical location for any user-wide environment sett=
ings? Will it be <br>guaranteed to be POSIXly correct, rather than having a=
ny bashisms?<br><br>Thanks for your work,<br><br>d.<br></div>

--00000000000065ce0205978595c7--




Acknowledgement sent to "Danny O'Brien" <danny@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#38243; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 8 Dec 2019 06:15:01 UTC

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