mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
parallel: --shebang-wrap --pipe works in pipe and with ::::
This commit is contained in:
parent
0b1896c368
commit
007ae78c28
|
@ -939,7 +939,7 @@ sub read_options {
|
||||||
}
|
}
|
||||||
if($::opt_shebang_wrap) {
|
if($::opt_shebang_wrap) {
|
||||||
# exec myself to split $ARGV[0] into separate fields
|
# exec myself to split $ARGV[0] into separate fields
|
||||||
my $parser = shell_quote_scalar(shift @ARGV);
|
my $parser = shift @ARGV;
|
||||||
my $scriptfile = shell_quote_scalar(shift @ARGV);
|
my $scriptfile = shell_quote_scalar(shift @ARGV);
|
||||||
exec "$0 $parser $scriptfile ::: @ARGV";
|
exec "$0 $parser $scriptfile ::: @ARGV";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue