From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: move "source /etc/profile" from .zlogin to .zprofile Date: Sat, 13 Oct 2018 18:33:59 -0700 Message-ID: <87sh198g6w.fsf@gmail.com> References: <87o9bxj1fy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBVIF-0007U3-Fb for guix-devel@gnu.org; Sat, 13 Oct 2018 21:34:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBVIE-0005Au-Ko for guix-devel@gnu.org; Sat, 13 Oct 2018 21:34:07 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:35115) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gBVIE-0005AP-CI for guix-devel@gnu.org; Sat, 13 Oct 2018 21:34:06 -0400 Received: by mail-pl1-x629.google.com with SMTP id f8-v6so7622571plb.2 for ; Sat, 13 Oct 2018 18:34:06 -0700 (PDT) In-Reply-To: <87o9bxj1fy.fsf@gmail.com> (Meiyo Peng's message of "Sat, 13 Oct 2018 23:44:49 +0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Meiyo Peng Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Meiyo, Meiyo Peng writes: > Guix's default skeletons put "source /etc/profile" into ~/.zlogin. But > /etc/profile resets the PATH environment variable, exports many other > environment variables, and source /etc/bashrc. According to > http://zsh.sourceforge.net/Intro/intro_3.html .zlogin is sourced after > .zshrc and should not be used for alias definitions, options, > environment variable settings, etc. Especially "as a general rule, it > should not change the shell environment at all". I think it's better to > source /etc/profile from ~/.zprofile. The same documentation you linked says: `.zprofile' is meant as an alternative to `.zlogin' for ksh fans; the two are not intended to be used together, although this could certainly be done if desired. Is the intended use of .zprofile any different from the intended use of .zlogin? If .zprofile and .zlogin are both meant to serve the same purpose, then I'm not sure why one would be preferable over the other. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlvCnQcACgkQ3UCaFdgi Rp2w4RAAwp5CTsdQZzxO50GnTgliNL2yEX8k1mL4flLxvbrb8FQo6GtWnXNRsAjw TLSgjvgiHNBARp0eswKbuievPQqMd380HESs59J3udUtpmmu37DhnSRJic8la+x8 98+FmScsSq1eCE6L+5fdoX5cPV8X5c9LuxHcaK9vPhmqyxy8TmfUVm1ymzFxnGOH Hq1iJ2lVIPFjiUtdncvlA3aEkhb7ldVZnqK+PLeoEgETAddkq6IOZHGLUxnWtbCW v+Izn282vs2faM21aXy3YwYVcFyPH8vHwQcosToGJG3MiehxIzvtLQGD+yo+pBYj H2qwx+smmP19Ta4Yq8hjwE0mtttITxVqgIadtEpye3RRRxzYwBKuuu+zgO77UgOM 9hM0OY1mCMm5Fau9OXCTOPZUwKSX4ZPioau2w3K1DLukBYFhEFURseXsEc9nixEd 9ah0TITdRF674L6v8ZUmPMD1SnsVmDnmhiTYW5GQcIVWMjhnJITSwH1VbGJejZ7c qy5QYTormpx4ZtfgqKtbmdR8mtYQS3qfBpcTpBmPtSl7FK5lMR4uOo17tf5HkJIm Yr5/qX0Fa6dqahWkTffnNw7fLUTkhRxcgHHjNGbex0bNLo7LIbNmYOqRuG5x/cXZ wX9vC6ItRZ9xyqJFYTZ+CvDr17MoGqV3yZcDF9FIOitReb73GlQ= =3XGg -----END PGP SIGNATURE----- --=-=-=--