diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-09-06 18:27:39 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-09-06 18:27:39 +0200 |
commit | 27be54ca533933db8c3e0cde4b213abf10dd5237 (patch) | |
tree | dfe63bfd45ab468c914f59303ef0dc9951b95a64 | |
parent | 96001098796c9011d1670cc8a7acd00ef49b2d7a (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.
-rw-r--r-- | src/nix/develop.cc | 1 |
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", |