From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rosebud Uplink Subject: bug#28223: Guix documentation uses wrong install command Date: Thu, 24 Aug 2017 11:45:36 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_VI1P192MB0174DA61E17665603BA9C82AE39A0VI1P192MB0174EURP_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dku4B-0003Lt-PH for bug-guix@gnu.org; Thu, 24 Aug 2017 11:29:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dku46-0006Kk-SE for bug-guix@gnu.org; Thu, 24 Aug 2017 11:29:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:44349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dku46-0006KU-Mf for bug-guix@gnu.org; Thu, 24 Aug 2017 11:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dku46-00035Z-II for bug-guix@gnu.org; Thu, 24 Aug 2017 11:29:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkqa0-0006Z0-La for bug-guix@gnu.org; Thu, 24 Aug 2017 07:45:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkqZw-0003My-N4 for bug-guix@gnu.org; Thu, 24 Aug 2017 07:45:44 -0400 Received: from mail-oln040092066108.outbound.protection.outlook.com ([40.92.66.108]:19045 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dkqZw-0003Js-6s for bug-guix@gnu.org; Thu, 24 Aug 2017 07:45:40 -0400 Content-Language: en-US List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 28223@debbugs.gnu.org --_000_VI1P192MB0174DA61E17665603BA9C82AE39A0VI1P192MB0174EURP_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Package: guix Version: 0.13.0 In the Guix documentation, category 2.1 (Binary Installation), step 3, the = command used to augment the PATH doesn't give the wanted result. 3. Make root=92s profile available under ~/.guix-profile: [...] # GUIX_PROFILE=3D$HOME/.guix-profile \ source $GUIX_PROFILE/etc/profile $GUIX_PROFILE is expanded first, and the "source" command will always be ex= panded as: source /etc/profile Putting a semicolon between the variable definition and the "source" comman= d resolves this problem and has the required effect. # GUIX_PROFILE=3D$HOME/.guix-profile ; source $GUIX_PROFILE/etc/profile The command could also be simplified by removing the definition of GUIX_PRO= FILE, and passing $HOME/.guix-profile/etc/profile to source. System: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26) x8= 6_64 GNU/Linux Libc: 2.19-18+deb8u10 --_000_VI1P192MB0174DA61E17665603BA9C82AE39A0VI1P192MB0174EURP_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Package: guix

Version: 0.13.0


In the Guix documentation, category 2.1 (Binary Installation), step 3, t= he command used to augment the PATH doesn't give the wanted result.


3. Make root=92s profile available under ~/.guix-pr= ofile:
[...]

# GUIX_PROFILE=3D$HOME/.guix-profile \=0A=
  source $GUIX_PROFILE/etc/profile


$GUIX_PROFILE is expanded first, and the "source" command will= always be expanded as:

source /etc/profile


Putting a semicolon between the variable definition and the "source= " command resolves this problem and has the required effect. 


# GUIX_PROFILE=3D$HOME/.guix-profile ; source $GUIX_=
PROFILE/etc/profile

The command could also be simplified by removing the definition of GUIX_= PROFILE, and passing $HOME/.guix-profile/etc/profile to source.


System: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u2 (2= 017-06-26) x86_64 GNU/Linux

Libc: 2.19-18+deb8u10

--_000_VI1P192MB0174DA61E17665603BA9C82AE39A0VI1P192MB0174EURP_--