From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Re: Eliminate environment variable hints? Date: Tue, 19 Feb 2019 10:17:26 +0100 Message-ID: <20190219091726.gp6v63jd3kqw3v6z@thebird.nl> References: <87a7iswyki.fsf@elephly.net> <20190218221809.GA12263@jurong> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([209.51.188.92]:35224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gw1dC-0000dG-UY for guix-devel@gnu.org; Tue, 19 Feb 2019 04:24:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gw1dA-0004Ul-Eu for guix-devel@gnu.org; Tue, 19 Feb 2019 04:24:02 -0500 Received: from mail.thebird.nl ([94.142.245.5]:38766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gw1dA-0004Tz-7J for guix-devel@gnu.org; Tue, 19 Feb 2019 04:24:00 -0500 Content-Disposition: inline In-Reply-To: <20190218221809.GA12263@jurong> 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: Andreas Enge Cc: guix-devel@gnu.org On Mon, Feb 18, 2019 at 11:18:09PM +0100, Andreas Enge wrote: > 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. Just running '. $PROFILE/etc/profile' is a bit dangerous. Especially on HPC machines. I guix-notes I also suggest to clear the other environment settings first with env -i /bin/bash --login --noprofile --norc But nobody loves me for that. We have pure 'guix environment'. Maybe we should have a 'guix run' too which starts a new shell with only those setting applicable to the profile. I think you can do this with 'guix environment' but it is not too clear. > I would not be too worried about bash vs. other shells: The current > suggestions already would not work in csh... it would be good to document though. Pj.