From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Re: Export environment variables only in `guix environment`. Date: Thu, 1 Feb 2018 06:22:11 +0100 Message-ID: <20180201052211.GA21222@thebird.nl> References: <87mv0tppfs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eh7Nc-0002Ho-3w for guix-devel@gnu.org; Thu, 01 Feb 2018 00:25:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eh7NX-0008QL-6b for guix-devel@gnu.org; Thu, 01 Feb 2018 00:25:48 -0500 Content-Disposition: inline In-Reply-To: <87mv0tppfs.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: Ludovic =?iso-8859-1?Q?Court=E8s?= Cc: guix-devel On Thu, Feb 01, 2018 at 12:40:39AM +0100, Ludovic Court=E8s wrote: > Hello, >=20 > Fis Trivial skribis: >=20 > > * Problem > > The exported environment variables can cause various problems in fore= ign > > distribution(1)(2). And besides, The long list of environment variabl= es(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 distribu= tions, I > > need to eliminate the need for exporting environment variables from g= uix to my > > login shell. Not a problem, just don't do it :). To import the invironments=20 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.