nix-shell --command: Remove bogus argument to "exit"

Fixes "exit: Inappropriate: numeric argument required" errors.
This commit is contained in:
Eelco Dolstra 2015-01-07 16:10:20 +01:00
parent 153a943de7
commit 7ba0e9cb48

View file

@ -134,7 +134,7 @@ for (my $n = 0; $n < scalar @ARGV; $n++) {
elsif ($arg eq "--command") {
$n++;
die "$0: $arg requires an argument\n" unless $n < scalar @ARGV;
$envCommand = "$ARGV[$n]\nexit $!";
$envCommand = "$ARGV[$n]\nexit";
}
elsif ($arg eq "--exclude") {