bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56799: [PATCH v2] gexp: Handle *unspecified* as a gexp input.


From: Maxime Devos
Subject: bug#56799: [PATCH v2] gexp: Handle *unspecified* as a gexp input.
Date: Wed, 27 Jul 2022 23:43:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 27-07-2022 22:20, Maxim Cournoyer wrote:

Fixes <https://issues.guix.gnu.org/56799>.

* guix/gexp.scm (gexp->sexp)[*unspecified*]: Quote value when encountering it.

I recommend writing a test case -- this patch does not actually do that.

Instead, it returns the symbol x.

In a ./pre-inst-env guix repl:

scheme@(guix-user)> ,use (guix)
scheme@(guix-user)> ,m (guix gexp)
scheme@(guix gexp)> ,enter-store-monad
store-monad@(guix gexp) (gexp->sexp #~(list #$*unspecified*) "x86_64-linux" "aarch64-linux-gnu")
$1 = (list x)
I don't know what exact semantics you had in mind but probably not this.

Greetings,
Maxime.

Attachment: OpenPGP_0x49E3EE22191725EE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]