diff options
author | Sandro Jäckel <sandro.jaeckel@sap.com> | 2022-02-05 17:56:51 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@sap.com> | 2022-02-05 17:56:51 +0100 |
commit | 45eeb2fd6ade832d045884b9a18decb4cddaceb1 (patch) | |
tree | 8924290ebae708102e08f212139b6e2e3a63c1b8 /src/nix-build | |
parent | bd383d1b6f91c4fe7ac21c52771e92027f649fa0 (diff) |
nix-shell: set BASH variable to correct shell
Diffstat (limited to 'src/nix-build')
-rwxr-xr-x | src/nix-build/nix-build.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index ae4746955..aeabdcdd4 100755 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -500,6 +500,7 @@ static void main_nix_build(int argc, char * * argv) "%3%" "PATH=%4%:\"$PATH\"; " "SHELL=%5%; " + "BASH=%5%; " "set +e; " R"s([ -n "$PS1" -a -z "$NIX_SHELL_PRESERVE_PROMPT" ] && PS1='\n\[\033[1;32m\][nix-shell:\w]\$\[\033[0m\] '; )s" "if [ \"$(type -t runHook)\" = function ]; then runHook shellHook; fi; " |