From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Environment variables in Guix and GuixSD Date: Thu, 8 Nov 2018 08:02:41 +0100 Message-ID: References: <7d565897-cc97-6dc1-7663-8f140e1b77fd@riseup.net> <877ehq5tmq.fsf@gnu.org> <87a7mksgcl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000896362057a21d338" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKeLM-0002UW-GC for guix-devel@gnu.org; Thu, 08 Nov 2018 02:03:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKeLL-0007eD-EM for guix-devel@gnu.org; Thu, 08 Nov 2018 02:03:08 -0500 In-Reply-To: <87a7mksgcl.fsf@gnu.org> 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: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: Guix-devel --000000000000896362057a21d338 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Ludo, 2018. nov. 7., Sze 22:55 d=C3=A1tummal Ludovic Court=C3=A8s = ezt =C3=ADrta: > Hi, > > G=C3=A1bor Boskovits skribis: > > > I have seen in the /etc/profile file that it suggest you to do somethin= g > like > > > > source $GUIX_PROFILE/etc/profile. > > Right, you see this advice in $GUIX_PROFILE/etc/profile itself. > > > This causes problems on systems where the startup file is executed by > > a posix /bin/sh, as this is bash specific. > > $GUIX_PROFILE/etc/profile is not honored by any shell. One has to > specifically put the =E2=80=98source=E2=80=99 line above in whichever fil= e is > appropriate (~/.bash_profile, ~/.profile, /etc/profile, etc.) > I did not express myself cleanly. What my problem was that 'source' is bash specific, while we can use '.' in posix shells. > On GuixSD this happens automatically but on a foreign distro users have > to add the =E2=80=98source=E2=80=99 line somewhere. > > Does that make sense? > > Thanks, > Ludo=E2=80=99. > g_bor > --000000000000896362057a21d338 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Ludo,

2018. nov. 7., Sze 22:55 d=C3=A1tummal Ludovic Court=C3=A8s <= ludo@gnu.org> ezt =C3=ADrta:
Hi,

G=C3=A1bor Boskovits <boskovits@gmail.com> skribis:

> I have seen in the /etc/profile file that it suggest you to do somethi= ng like
>
> source $GUIX_PROFILE/etc/profile.

Right, you see this advice in $GUIX_PROFILE/etc/profile itself.

> This causes problems on systems where the startup file is executed by<= br> > a posix /bin/sh, as this is bash specific.

$GUIX_PROFILE/etc/profile is not honored by any shell.=C2=A0 One has to
specifically put the =E2=80=98source=E2=80=99 line above in whichever file = is
appropriate (~/.bash_profile, ~/.profile, /etc/profile, etc.)

I did not expr= ess myself cleanly. What my problem was that 'source' is bash speci= fic, while we can use '.' in posix shells.
<= br>

On GuixSD this happens automatically but on a foreign distro users have
to add the =E2=80=98source=E2=80=99 line somewhere.

Does that make sense?

Thanks,
Ludo=E2=80=99.
g_bor
--000000000000896362057a21d338--