Merge pull request #6047 from SuperSandro2000/nix-shell-BASH

nix-shell: set BASH variable to correct shell
This commit is contained in:
Eelco Dolstra 2022-02-06 13:19:52 +01:00 committed by GitHub
commit 3b64569601
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; "