[bug#61927,1/1] environment: Unset 'TERM' when checking environment.
Commit Message
* guix/scripts/environment.scm (child-shell-environment): Unset 'TERM'.
---
guix/scripts/environment.scm | 2 ++
1 file changed, 2 insertions(+)
@@ -514,6 +514,8 @@ (define lines
(catch #t
(lambda ()
(load-profile profile manifest #:pure? #t)
+ ; We don't want ANSI escape codes such as bracketed paste to mess up the output of the script.
+ (setenv "TERM" "")
(setenv "GUIX_ENVIRONMENT" profile)
(close-fdes controller)
(login-tty inferior)