mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-25 23:47:53 +00:00
Fixed bug #46231: {%} with --pipepart broken.
This commit is contained in:
parent
da9043fc65
commit
9636f9f249
|
@ -123,9 +123,9 @@ if($opt::pipepart) {
|
||||||
$opt::blocksize = 1 + $size / $Global::max_jobs_running;
|
$opt::blocksize = 1 + $size / $Global::max_jobs_running;
|
||||||
}
|
}
|
||||||
@Global::cat_partials = map { pipe_part_files($_) } @opt::a;
|
@Global::cat_partials = map { pipe_part_files($_) } @opt::a;
|
||||||
# Unget the command as many times as there are parts
|
# Unget the empty arg as many times as there are parts
|
||||||
$Global::JobQueue->{'commandlinequeue'}->unget(
|
$Global::JobQueue->{'commandlinequeue'}{'arg_queue'}->unget(
|
||||||
map { $Global::JobQueue->{'commandlinequeue'}->get() } @Global::cat_partials
|
map { [Arg->new("\0")] } @Global::cat_partials
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if($opt::eta or $opt::bar or $opt::shuf or $Global::halt_pct) {
|
if($opt::eta or $opt::bar or $opt::shuf or $Global::halt_pct) {
|
||||||
|
|
|
@ -517,5 +517,7 @@ bug #46231: {%} with --pipepart broken. Should give 1+2
|
||||||
1
|
1
|
||||||
2
|
2
|
||||||
1
|
1
|
||||||
|
echo '**'
|
||||||
|
**
|
||||||
### 1 .par file from --files expected
|
### 1 .par file from --files expected
|
||||||
1
|
1
|
||||||
|
|
Loading…
Reference in a new issue