[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: weird errors
From: |
Alex Vong |
Subject: |
Re: weird errors |
Date: |
Mon, 15 Jan 2018 13:43:50 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello Catonano,
Danny Milosavljevic <address@hidden> 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
- weird errors, Catonano, 2018/01/13
- Re: weird errors, Ludovic Courtès, 2018/01/13
- Re: weird errors, Catonano, 2018/01/14
- Re: weird errors, Danny Milosavljevic, 2018/01/14
- Re: weird errors, Danny Milosavljevic, 2018/01/14
- Re: weird errors, Catonano, 2018/01/14
- Re: weird errors, Ricardo Wurmus, 2018/01/14
- Re: weird errors, Catonano, 2018/01/14
- Re: weird errors, Danny Milosavljevic, 2018/01/14
- Re: weird errors, Catonano, 2018/01/14
- Re: weird errors,
Alex Vong <=
- Re: weird errors, Catonano, 2018/01/22
- Re: weird errors, Danny Milosavljevic, 2018/01/22
- Re: weird errors, Catonano, 2018/01/22
- Re: weird errors, Danny Milosavljevic, 2018/01/22
- Re: weird errors, Catonano, 2018/01/22
- Re: weird errors; shepherd, Danny Milosavljevic, 2018/01/23
- Re: weird errors; shepherd, Catonano, 2018/01/24
- Re: weird errors; shepherd, Danny Milosavljevic, 2018/01/24
- Re: weird errors; shepherd, Catonano, 2018/01/24
- Re: weird errors; shepherd, Ludovic Courtès, 2018/01/24