guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Export environment variables only in `guix environment`.


From: Pjotr Prins
Subject: Re: Export environment variables only in `guix environment`.
Date: Thu, 1 Feb 2018 06:22:11 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Feb 01, 2018 at 12:40:39AM +0100, Ludovic Court├Ęs wrote:
> Hello,
> 
> Fis Trivial <address@hidden> skribis:
> 
> > * Problem
> > The exported environment variables can cause various problems in foreign
> > distribution(1)(2). And besides, The long list of environment variables(4)
> > injected into user's login shell makes the user's environment impure.
> > So, I believe that if I want to run guix safely on a foreign distributions, 
> > I
> > need to eliminate the need for exporting environment variables from guix to 
> > my
> > login shell.

Not a problem, just don't do it :). To import the invironments 
run

  . $PROFILE/etc/profile

I do that in scripts or when I need something. Even so, many programs
work with just the PATH set.

Pj.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]