Subject: Re: bug#54469: home-environment-variables-service-type does not quote things

From: Ludovic Courtès <[email-masked]>
Date: Thu, 14 Jul 2022 01:13:16 +0200

Hi,

Maxime Devos <[email-masked]> skribis:

> (use-modules (gnu home) (gnu packages) (gnu home services)
>              (gnu services) (guix gexp) (gnu home services shells))
>
> (define formula-of-the-day
>    ;; TODO: add some more formulae, randomise
>    "$US dollar/€euro = 1.11")
>
> (home-environment
>   (packages '())
>   (services
>     (list (simple-service 'extra-environment-variables
>                         home-environment-variables-service-type
>                         `(("formula of the (reconfiguration) day" . ,formula-of-the-day))))))

Fixed in af4c103595a725194318f40fc5aba110772ff417… except for checking
the name of the variable.

I guess we should stick to the grammar for “names” that Bash defines
(info "(bash) Definitions") and error out if the variable name doesn’t
comply?

Ludo’.