parallel: --shebang-wrap --pipe works in pipe and with ::::

This commit is contained in:
Ole Tange 2012-11-22 22:06:49 +01:00
parent 0b1896c368
commit 007ae78c28

View file

@ -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";
} }