mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 14:07:55 +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;
|
||||
}
|
||||
@Global::cat_partials = map { pipe_part_files($_) } @opt::a;
|
||||
# Unget the command as many times as there are parts
|
||||
$Global::JobQueue->{'commandlinequeue'}->unget(
|
||||
map { $Global::JobQueue->{'commandlinequeue'}->get() } @Global::cat_partials
|
||||
# Unget the empty arg as many times as there are parts
|
||||
$Global::JobQueue->{'commandlinequeue'}{'arg_queue'}->unget(
|
||||
map { [Arg->new("\0")] } @Global::cat_partials
|
||||
);
|
||||
}
|
||||
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
|
||||
2
|
||||
1
|
||||
echo '**'
|
||||
**
|
||||
### 1 .par file from --files expected
|
||||
1
|
||||
|
|
Loading…
Reference in a new issue