about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-12-17T17·16+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-12-17T17·16+0100
commit7b0d8fb23d9c71f1efb119c1f267124349c82742 (patch)
treeba1dac4eddf3122902e668bae42edcd2cd70a96b
parente36229d27f9ab508e0abf1892f3e8c263d2f8c58 (diff)
nix-shell --pure: Keep $TERM
-rwxr-xr-xscripts/nix-build.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in
index 8ac95e90e59e..aaab0ce4db8b 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.