unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* post guix pull shell command
@ 2021-08-27  4:47 Andy Tai
  2021-08-27  6:58 ` Ricardo Wurmus
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Tai @ 2021-08-27  4:47 UTC (permalink / raw)
  To: help-guix

Hi, after doing a guix pull && guix package -u

this message is shown

hint: Consider setting the necessary environment variables by running:

     GUIX_PROFILE="/home/atai/.guix-profile"
     . "$GUIX_PROFILE/etc/profile"

I believe this actually means to ask the user to do

GUIX_PROFILE="/home/atai/.guix-profile"   . "$GUIX_PROFILE/etc/profile"


and if this is true, I would recommend to print the message as

hint: Consider setting the necessary environment variables by running:

     GUIX_PROFILE="/home/atai/.guix-profile"  \
     . "$GUIX_PROFILE/etc/profile"


to make it easy for the user to just copy and to paste that command line as it.
Thanks


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

* Re: post guix pull shell command
  2021-08-27  4:47 post guix pull shell command Andy Tai
@ 2021-08-27  6:58 ` Ricardo Wurmus
  0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2021-08-27  6:58 UTC (permalink / raw)
  To: Andy Tai; +Cc: help-guix


Hi Andy,

> Hi, after doing a guix pull && guix package -u
>
> this message is shown
>
> hint: Consider setting the necessary environment variables by 
> running:
>
>      GUIX_PROFILE="/home/atai/.guix-profile"
>      . "$GUIX_PROFILE/etc/profile"

This is correct as is.

You set the GUIX_PROFILE variable in the first command and then 
you source a file referencing the variable.

You cannot do this in one go, because $GUIX_PROFILE would evaluate 
to the empty string as the command has not been run yet.

-- 
Ricardo


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

end of thread, other threads:[~2021-08-27  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27  4:47 post guix pull shell command Andy Tai
2021-08-27  6:58 ` Ricardo Wurmus

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).