Message ID | 20230303022710.8416-1-winter@winter.cafe |
---|---|
State | New |
Headers | show |
Series | environment: Fix '--check' for shells that output ANSI escape codes based on 'TERM'. | expand |
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index 44cfcb4f76..a3cc9e6b83 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -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)