From mboxrd@z Thu Jan  1 00:00:00 1970
From: Niall Dooley <dooleyn@gmail.com>
Subject: Re: "The following environment variable definitions may be needed"
Date: Thu, 11 May 2017 20:55:28 +0100
Message-ID: <CADS3Lq41x26qLi6iFcPtnmb3FWyVxdV1mV-41UYEbebc-cyttA@mail.gmail.com>
References: <87lgq5p8al.fsf@gmail.com> <87shkcvs33.fsf@gnu.org>
	<86ziekygnu.fsf@gmail.com>
	<CADS3Lq6dPNqFVq1o1BFUgAFxR1FDBzvUu4HB3_4pVJ+6KH36_w@mail.gmail.com>
	<87tw4rvkkm.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Return-path: <help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48471)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dooleyn@gmail.com>) id 1d8uC5-0004QJ-BZ
	for help-guix@gnu.org; Thu, 11 May 2017 15:56:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dooleyn@gmail.com>) id 1d8uC4-0001es-Ep
	for help-guix@gnu.org; Thu, 11 May 2017 15:56:13 -0400
In-Reply-To: <87tw4rvkkm.fsf@gnu.org>
List-Id: <help-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-guix>,
	<mailto:help-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-guix/>
List-Post: <mailto:help-guix@gnu.org>
List-Help: <mailto:help-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-guix>,
	<mailto:help-guix-request@gnu.org?subject=subscribe>
Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org
Sender: "Help-Guix" <help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org>
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@gnu.org>
Cc: myglc2 <myglc2@gmail.com>, help-guix <help-guix@gnu.org>

It certainly does. I hadn't fully appreciated the subtle differences betwee=
n
these dotfiles and when they are sourced. Thanks a lot Ludo.
Niall


On 11 May 2017 at 09:55, Ludovic Court=C3=A8s <ludo@gnu.org> wrote:
> Niall Dooley <dooleyn@gmail.com> skribis:
>
>> This too has confused me so perhaps an update of the manual is in order.=
 Like
>> others I too followed the instructions in the manual
>> (https://www.gnu.org/software/guix/manual/guix.html#Invoking-guix-packag=
e)
>> and have the following
>> in my .bashrc (my system (a foreign distro - Trisquel 7) doesn't have a
>> .bash_profile but only a .profile which sources .bashrc):
>
> You should source ~/.guix-profile/etc/profile from .profile or
> .bash_profile, not .bashrc, so that it is sourced only once when you log
> in.
>
> If you source it from .bashrc, it ends up being sourced every time you
> spawn a new shell, leading to duplicate entries in PATH,
> GUILE_LOAD_PATH, etc.
>
> HTH!
>
> Ludo=E2=80=99.