nix-shell: Support multiple "#! nix-shell" lines

This commit is contained in:
Eelco Dolstra 2015-06-01 13:48:45 +02:00
parent 99c2c14f50
commit a80f11bf7b

View file

@ -56,7 +56,7 @@ if ($runEnv && defined $ARGV[0] && $ARGV[0] !~ /nix-shell/) {
while (<SCRIPT>) {
chomp;
if (/^\#\!\s*nix-shell (.*)$/) {
@ARGV = split / /, $1;
push @ARGV, split(/ /, $1);
}
}
}