unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28223: Guix documentation uses wrong install command
@ 2017-08-24 11:45 Rosebud Uplink
  2017-11-20 17:44 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Rosebud Uplink @ 2017-08-24 11:45 UTC (permalink / raw)
  To: 28223

[-- Attachment #1: Type: text/plain, Size: 904 bytes --]

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’s profile available under ~/.guix-profile:
[...]

# GUIX_PROFILE=$HOME/.guix-profile \
  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=$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 (2017-06-26) x86_64 GNU/Linux

Libc: 2.19-18+deb8u10

[-- Attachment #2: Type: text/html, Size: 1669 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#28223: Guix documentation uses wrong install command
  2017-08-24 11:45 bug#28223: Guix documentation uses wrong install command Rosebud Uplink
@ 2017-11-20 17:44 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2017-11-20 17:44 UTC (permalink / raw)
  To: Rosebud Uplink; +Cc: 28223-done

Hello,

Rosebud Uplink <Uplink.Introversion@outlook.com> skribis:

> 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’s profile available under ~/.guix-profile:
> [...]
>
> # GUIX_PROFILE=$HOME/.guix-profile \
>   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=$HOME/.guix-profile ; source $GUIX_PROFILE/etc/profile

This is finally fixed:

  https://git.savannah.gnu.org/cgit/guix.git/commit/?id=bd7e136d295f0d6c1aa5d107356e28c259a54cb9

Thank you!

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-20 17:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-24 11:45 bug#28223: Guix documentation uses wrong install command Rosebud Uplink
2017-11-20 17:44 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).