From 7b0d8fb23d9c71f1efb119c1f267124349c82742 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 17 Dec 2013 18:16:04 +0100 Subject: [PATCH] nix-shell --pure: Keep $TERM --- scripts/nix-build.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 8ac95e90e..aaab0ce4d 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -183,7 +183,7 @@ foreach my $expr (@exprs) { # Set the environment. if ($pure) { foreach my $name (keys %ENV) { - next if $name eq "HOME" || $name eq "USER" || $name eq "LOGNAME" || $name eq "DISPLAY" || $name eq "PATH"; + next if $name eq "HOME" || $name eq "USER" || $name eq "LOGNAME" || $name eq "DISPLAY" || $name eq "PATH" || $name eq "TERM"; delete $ENV{$name}; } # NixOS hack: prevent /etc/bashrc from sourcing /etc/profile.