bug-guix
[Top][All Lists]
Advanced

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

bug#63234: cached guix shell environment not capturing environment varia


From: Ludovic Courtès
Subject: bug#63234: cached guix shell environment not capturing environment variables set in manifest
Date: Tue, 02 May 2023 17:48:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Hi,

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> Consider the following manifest.scm file:
>
> (setenv "DUMMY" "hello")
>
> (packages->manifest
>  (map specification->package
>       (list "hello")))
>
>
> Running:
>
> $ guix shell --rebuild-cache -m manifest.scm -- sh -c 'echo $DUMMY'
> hello
>
> $ guix shell -m manifest.scm -- sh -c 'echo $DUMMY'
>
> I think this is a recent behavior change, otherwise I wouldn't have
> gotten fond of that trick ;-).

Hmm, I don’t think it’s a recent change.  It’s a trick that might work
“by chance” but cannot be relied on.

Not-a-bug to me!

Ludo’.





reply via email to

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