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 @@ by running 'set' in the shell."
 | 
				
			||||||
       (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)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue