From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Eliminate environment variable hints? Date: Tue, 19 Feb 2019 10:34:05 +0100 Message-ID: <87sgwkunoy.fsf@elephly.net> References: <87a7iswyki.fsf@elephly.net> <20190218221809.GA12263@jurong> <20190219091726.gp6v63jd3kqw3v6z@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:37720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gw1nP-0004Bx-Ki for guix-devel@gnu.org; Tue, 19 Feb 2019 04:34:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gw1nP-0000Si-0R for guix-devel@gnu.org; Tue, 19 Feb 2019 04:34:35 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21020) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gw1nN-0000KI-2S for guix-devel@gnu.org; Tue, 19 Feb 2019 04:34:33 -0500 In-reply-to: <20190219091726.gp6v63jd3kqw3v6z@thebird.nl> 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: Pjotr Prins Cc: guix-devel@gnu.org Pjotr Prins writes: > 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 You can do this all in one go by passing etc/profile as the init file for bash in this invocation of env. No need to separately source etc/profile then! -- Ricardo