From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OIbpFoNC8l/udAAA0tVLHw (envelope-from ) for ; Sun, 03 Jan 2021 22:17:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aDd7EoNC8l8oBAAA1q6Kng (envelope-from ) for ; Sun, 03 Jan 2021 22:17:39 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C5992940481 for ; Sun, 3 Jan 2021 22:17:38 +0000 (UTC) Received: from localhost ([::1]:36864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwBgv-0003MQ-OX for larch@yhetil.org; Sun, 03 Jan 2021 17:17:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwBRf-000140-J6 for help-guix@gnu.org; Sun, 03 Jan 2021 17:01:53 -0500 Received: from mail1.fsfe.org ([217.69.89.151]:48420) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwBRb-0004Yg-Gm for help-guix@gnu.org; Sun, 03 Jan 2021 17:01:51 -0500 Message-ID: <3750d00313c81adfdebd30878ddcebfbcf400104.camel@fsfe.org> Subject: Re: define PATH and PROFILE From: Christophe Pisteur To: Tobias Geerinckx-Rice Date: Sun, 03 Jan 2021 23:01:44 +0100 In-Reply-To: <87y2h9hhjz.fsf@nckx> References: <87y2h9hhjz.fsf@nckx> User-Agent: Evolution 3.38.2-1 MIME-Version: 1.0 Received-SPF: pass client-ip=217.69.89.151; envelope-from=christophe.pisteur@fsfe.org; helo=mail1.fsfe.org X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 03 Jan 2021 17:17:15 -0500 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.73 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=fsfe.org (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: C5992940481 X-Spam-Score: -0.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: QTaB6I8oykUt Le dimanche 03 janvier 2021 à 21:49 +0100, Tobias Geerinckx-Rice a écrit : > Hi Christophe, > > Christophe Pisteur 写道: > > 1) after guix pull, I get the following message: > > > > export PATH="$HOME/.config/guix/current/bin:$PATH" > > export > > INFOPATH="$HOME/.config/guix/current/share/info:$INFOPATH" > > > > I don't quite understand what to type in the terminal. > > Exactly these two lines as printed.  As you copied them into this > e-mail. > > > Should I replace > > $HOME or HOME with the path of my directory, for example: > > > > export PATH="/home/christophe/.config/guix/current/bin:$PATH" > > and then: > > export > > INFOPATH="/home/christophe/.config/guix/current/share/info:$INFOPAT > > H" > > Well, if you: > >   $ echo $HOME >   /home/christophe > > so both are entirely equivalent. > > If you write (or copy/paste) $HOME, the shell will perform your > replacement for you, with less chance of mistakes. > > > 2) similar question with this message: > > > > GUIX_PROFILE="/home/christophe/.guix-profile" > > . "$GUIX_PROFILE/etc/profile" > > > > Is this two actions (two step in the terminal, the first line > > and > > "enter" then the second line and "enter")? > > Yes, although most terminal emulators do the right thing if you > simply copy and paste both lines at once with the mouse.  You > might have to hit Enter after that; it depends on the emulator. > > > And does the second line really begin with a dot? > > Yes.  ‘.’ evaluates the contents of a shell script as if you typed > it at the prompt.  In bash, it's aliased to ‘source’ but this is > not standard, so we say ‘.’. > > It's similar to executing the script (without the dot), but allows > the script to change the current shell's environment: > >   $ TEST=nope >   $ cat ./example >   TEST=hullo >   $ echo $TEST >   nope >   $ chmod +x ./example >   $ ./example # <- running >   $ echo $TEST >   nope >   $ . ./example >   $ echo $TEST # <- sourcing >   hullo >   $ > > > In both questions (1 et 2), I have tried several options but the > > terminal does not return any message (neither error nor success > > message) > > In Unix -- and GNU, being a Unix -- silence is golden.  }:-) > > If something did go wrong you should've got an error message, so > it sounds like everything is fine & boring. > > Welcome to Guix, and please don't hesitate to ask questions, > newbie or not. > > Kind regards, > > T G-R Thank you very much for this answer which not only explains to me what to do, but also allows me to understand what I am doing!  Thank you! Christophe