[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/18: environment: Clear 'TERM' when checking environment.
From: |
guix-commits |
Subject: |
08/18: environment: Clear 'TERM' when checking environment. |
Date: |
Mon, 13 Mar 2023 10:11:11 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 3a7757f1fdc4ae30d7ce177792be437a7a5ca52f
Author: Winter <winter@winter.cafe>
AuthorDate: Thu Mar 2 21:27:10 2023 -0500
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>
---
guix/scripts/environment.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index 33a76abff3..a4939ea63c 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -514,6 +514,11 @@ by running 'set' in the shell."
(catch #t
(lambda ()
(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)
(close-fdes controller)
(login-tty inferior)
- branch master updated (d4b2f5eace -> 8304979415), guix-commits, 2023/03/13
- 06/18: packages: 'package-input-rewriting/spec' ignores hidden packages., guix-commits, 2023/03/13
- 08/18: environment: Clear 'TERM' when checking environment.,
guix-commits <=
- 04/18: doc: %desktop-services: Fix incorrect description., guix-commits, 2023/03/13
- 10/18: gnu: rnp: Improve package style., guix-commits, 2023/03/13
- 11/18: gnu: font-iosevka: Update to 20.0.0., guix-commits, 2023/03/13
- 12/18: gnu: Add font-iosevka-ss08., guix-commits, 2023/03/13
- 13/18: gnu: Add font-iosevka-ss09., guix-commits, 2023/03/13
- 14/18: gnu: pumpa: Update upsream URL., guix-commits, 2023/03/13
- 15/18: doc: Fix incorrect @deffn usage for service-types., guix-commits, 2023/03/13
- 17/18: doc: Use @defun for procedures., guix-commits, 2023/03/13
- 16/18: doc: Fix incorrect @deffn usage for data types., guix-commits, 2023/03/13
- 02/18: system: Simplify nsswitch binding., guix-commits, 2023/03/13