nix-build --run-env: Always use Bash

Fixes #113.
Fixes #131.
This commit is contained in:
Eelco Dolstra 2013-07-11 14:40:29 +02:00
parent 656390062a
commit ed09d0c0a4

View file

@ -186,7 +186,7 @@ foreach my $expr (@exprs) {
'set +e; ' .
'PS1="\n\[\033[1;32m\][nix-build:\w]$\[\033[0m\] "; ' .
$envCommand);
exec($ENV{SHELL}, "--rcfile", $rcfile);
exec($ENV{NIX_BUILD_SHELL} // "bash", "--rcfile", $rcfile);
die;
}