mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
environment: Clear 'TERM' when checking environment.
* guix/scripts/environment.scm (child-shell-environment): Set 'TERM' to the empty string. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
ae587c2ef0
commit
3a7757f1fd
1 changed files with 5 additions and 0 deletions
|
@ -514,6 +514,11 @@ (define lines
|
||||||
(catch #t
|
(catch #t
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(load-profile profile manifest #:pure? #t)
|
(load-profile profile manifest #:pure? #t)
|
||||||
|
|
||||||
|
;; Mark the terminal as "unknown" do avoid ANSI escape codes such
|
||||||
|
;; as bracketed paste that would mess up the output of the script.
|
||||||
|
(setenv "TERM" "")
|
||||||
|
|
||||||
(setenv "GUIX_ENVIRONMENT" profile)
|
(setenv "GUIX_ENVIRONMENT" profile)
|
||||||
(close-fdes controller)
|
(close-fdes controller)
|
||||||
(login-tty inferior)
|
(login-tty inferior)
|
||||||
|
|
Loading…
Reference in a new issue