unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Vong <alexvong1995@gmail.com>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: weird errors
Date: Mon, 15 Jan 2018 13:43:50 +0800	[thread overview]
Message-ID: <87d12bvfqh.fsf@gmail.com> (raw)
In-Reply-To: <20180114174509.3428f435@scratchpost.org> (Danny Milosavljevic's message of "Sun, 14 Jan 2018 17:45:09 +0100")

Hello Catonano,

Danny Milosavljevic <dannym@scratchpost.org> writes:

>> So were the spaces the only problem ?
>
> In
> https://gitlab.com/humanitiesNerd/guix-hacks/blob/trytonservice/gnu/services/trytond.scm
> , you don't invoke a shell (example: "sh", "bash", "csh" etc) so the
> "VARIABLE=VALUE" syntax will not be evaluated by the shell and the
> kernel will try to start a program called "VARIABLE=VALUE" instead.
>
> So either (invoke "sh" "-c" "VARIABLE=VALUE trytond-admin ...") or
> just use setenv and then invoke trytond-admin directly.

Actually, there is one more way. You can run (I didn't test)

  (invoke "env" "VAR1=VAL1" ... "VARn=VALn" "trytond-admin" "ARG1" ... "ARGn")

But personally I prefer the 'setenv' approach, it looks more schemish to
me.

In fact, I think we should have a 'with-environment-variables' macro
which run the body with the appropriate environment variables set and
restore them after we finish, similar to how 'with-directory-excursion'
works.

Cheers,
Alex

  parent reply	other threads:[~2018-01-15  5:44 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-13 17:00 weird errors Catonano
2018-01-13 21:13 ` Ludovic Courtès
2018-01-14  7:21   ` Catonano
2018-01-14 10:43     ` Danny Milosavljevic
2018-01-14 10:57       ` Danny Milosavljevic
2018-01-14 11:00       ` Catonano
2018-01-14 16:38         ` Ricardo Wurmus
2018-01-14 20:35           ` Catonano
2018-01-14 16:45         ` Danny Milosavljevic
2018-01-14 20:33           ` Catonano
2018-01-15  5:43           ` Alex Vong [this message]
2018-01-22 10:52         ` Catonano
2018-01-22 10:59           ` Danny Milosavljevic
2018-01-22 12:42             ` Catonano
2018-01-22 19:01               ` Danny Milosavljevic
2018-01-22 20:37                 ` Catonano
2018-01-23 22:43                   ` weird errors; shepherd Danny Milosavljevic
2018-01-24 12:34                     ` Catonano
2018-01-24 12:46                       ` Danny Milosavljevic
2018-01-24 12:52                         ` Catonano
2018-01-24 14:47                     ` Ludovic Courtès
2018-01-24 19:36                       ` Danny Milosavljevic
2018-01-24 22:28                         ` Ludovic Courtès
2018-01-29  7:24                     ` Catonano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d12bvfqh.fsf@gmail.com \
    --to=alexvong1995@gmail.com \
    --cc=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).