guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] scripts: container: Pass through TERM when calling exec


From: Ludovic Courtès
Subject: Re: [PATCH] scripts: container: Pass through TERM when calling exec
Date: Wed, 25 Jan 2017 14:28:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Christopher Baines <address@hidden> skribis:

> +             (environment (fold (lambda (name alist)
> +                                  (let ((value (getenv name)))
> +                                    (if value
> +                                        (cons (cons name value) alist)
> +                                        alist)))
> +                                '()
> +                                ;; Pass through the TERM environment variable
> +                                ;; to inform processes about the capabilities
> +                                ;; of the terminal
> +                                '("TERM"))))

I changed that to ‘filter-map’, which is slightly more concise.

Ludo’.



reply via email to

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