mirror of
https://github.com/NixOS/nix.git
synced 2025-12-03 15:40:59 +01:00
Fix broken call to shellwords
nix-shell shebangs were broken by9018deab(cherry picked from commit3baf8be1d1)
This commit is contained in:
parent
08500066ea
commit
1852f7dbf3
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ if ($runEnv && defined $ARGV[0] && $ARGV[0] !~ /nix-shell/) {
|
||||||
while (<SCRIPT>) {
|
while (<SCRIPT>) {
|
||||||
chomp;
|
chomp;
|
||||||
if (/^\#\!\s*nix-shell (.*)$/) {
|
if (/^\#\!\s*nix-shell (.*)$/) {
|
||||||
push @ARGV, shellwords(/ /, $1);
|
push @ARGV, shellwords($1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue