From 7ba0e9cb481f00baca02f31393ad49681fc48a5d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 7 Jan 2015 16:10:20 +0100 Subject: [PATCH] nix-shell --command: Remove bogus argument to "exit" Fixes "exit: Inappropriate: numeric argument required" errors. --- scripts/nix-build.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 9127d90b2..3ac02ad35 100755 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -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") {