From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: Eliminate environment variable hints? Date: Mon, 18 Feb 2019 23:18:09 +0100 Message-ID: <20190218221809.GA12263@jurong> References: <87a7iswyki.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:60142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvrEt-0000FR-CY for guix-devel@gnu.org; Mon, 18 Feb 2019 17:18:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvrEs-0003t8-NQ for guix-devel@gnu.org; Mon, 18 Feb 2019 17:18:15 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:39448) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gvrEs-0003ra-F1 for guix-devel@gnu.org; Mon, 18 Feb 2019 17:18:14 -0500 Content-Disposition: inline In-Reply-To: <87a7iswyki.fsf@elephly.net> 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: Ricardo Wurmus Cc: guix-devel@gnu.org Hello, On Mon, Feb 18, 2019 at 10:56:13PM +0100, Ricardo Wurmus wrote: > when installing a package into a profile Guix very helpfully tells you > that you may need to set certain environment variables. It doesn=E2=80= =99t tell > you that these environment variables can also be set by source=E2=80=99= ing the > generated etc/profile file. something I noticed is that I see these recommendations also when the environment variables are already set, precisely by sourcing the (previou= s) $HOME/.guix-profile/etc/profile. Now the profile changed, so they need to be re-sourced (which I usually do by calling "bash" from bash, since I so= urce from the .bashrc). On the other hand, using the recommended environment variables would surv= ive profile changes, since they look like export PATH=3D"/home/andreas/.guix-profile/bin:/home/andreas/.guix-pro= file/sbin${PATH:+:}$PATH" instead of pointing to /gnu/store/...-profile/bin with a particular hash. So the two are clearly not equivalent. Which of them is actually preferable? I find it a bit confusing that after running "guix package -i hello" I cannot run "hello" immediately, unlike in Debian. I would not be too worried about bash vs. other shells: The current suggestions already would not work in csh... Andreas