[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60106: [Shepherd 0.9.3] ‘system*’ replacement cannot be passed envir
From: |
Ludovic Courtès |
Subject: |
bug#60106: [Shepherd 0.9.3] ‘system*’ replacement cannot be passed environment variables |
Date: |
Thu, 22 Dec 2022 17:47:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Adam Faiz <adam.faiz@disroot.org> skribis:
>> I think we’ll have to add a parameter to ‘spawn-command’ to specify
>> environment variables.
>> Ludo’.
> If you do this, can you add an #:append? flag which adds environment
> variables to the inherited environment instead of specifying the
> variables declaratively? It can be #f by default.
>
> It would be very useful for me using the shepherd as init on a foreign
> distro, so I don't have to use the `env` command.
You could always write something like:
#:environment-variables `("EXTRA_VARIABLE=something" ,@(environ))
to append ‘EXTRA_VARIABLE’ to those of the environment.
So I don’t think we need #:append.
Thanks for your feedback,
Ludo’.