aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-09-06 18:27:39 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-09-06 18:27:39 +0200
commit27be54ca533933db8c3e0cde4b213abf10dd5237 (patch)
treedfe63bfd45ab468c914f59303ef0dc9951b95a64 /src
parent96001098796c9011d1670cc8a7acd00ef49b2d7a (diff)
nix develop: Ignore stdenv's $SHELL
Stdenv sets this to a bash that doesn't have readline/completion support, so running 'nix (develop|shell)' inside a 'nix develop' gives you a crippled shell. So let's just ignore the derivation's $SHELL. This could break interactive use of build phases that use $SHELL, but they appear to be fairly rare.
Diffstat (limited to 'src')
-rw-r--r--src/nix/develop.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/develop.cc b/src/nix/develop.cc
index ba7ba7c25..4de109754 100644
--- a/src/nix/develop.cc
+++ b/src/nix/develop.cc
@@ -246,6 +246,7 @@ struct Common : InstallableCommand, MixProfile
"NIX_LOG_FD",
"NIX_REMOTE",
"PPID",
+ "SHELL",
"SHELLOPTS",
"SSL_CERT_FILE", // FIXME: only want to ignore /no-cert-file.crt
"TEMP",