all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Winter via Guix-patches via <guix-patches@gnu.org>
To: 61927@debbugs.gnu.org
Cc: Winter <winter@winter.cafe>
Subject: [bug#61927] [PATCH 1/1] environment: Unset 'TERM' when checking environment.
Date: Thu,  2 Mar 2023 21:27:10 -0500	[thread overview]
Message-ID: <20230303022710.8416-1-winter@winter.cafe> (raw)
In-Reply-To: <20230303022535.8336-1-winter@winter.cafe>

* guix/scripts/environment.scm (child-shell-environment): Unset 'TERM'.
---
 guix/scripts/environment.scm | 2 ++
 1 file changed, 2 insertions(+)

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)
-- 
2.39.1





  reply	other threads:[~2023-03-03  2:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-03  2:25 [bug#61927] [PATCH 0/1] environment: Fix '--check' for shells that output ANSI escape codes based on 'TERM' Winter via Guix-patches via
2023-03-03  2:27 ` Winter via Guix-patches via [this message]
2023-03-13 13:21 ` bug#61927: " Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230303022710.8416-1-winter@winter.cafe \
    --to=guix-patches@gnu.org \
    --cc=61927@debbugs.gnu.org \
    --cc=winter@winter.cafe \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.