mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-23 05:07:54 +00:00
parallel: fixed: seq 9 | parallel -N 10 echo
This commit is contained in:
parent
e51bc579c8
commit
1cc9c990a4
|
@ -136,16 +136,22 @@ cc:Peter Simons <simons@cryp.to>, Sandro Cazzaniga <kharec@mandriva.org>,
|
|||
ryoichiro.suzuki@gmail.com,kerick@shiftedbit.net,
|
||||
Christian Faulhammer <fauli@gentoo.org>
|
||||
|
||||
Subject: GNU Parallel 2010XXXX released
|
||||
Subject: GNU Parallel 2011XXXX released
|
||||
|
||||
GNU Parallel 2010XXXX has been released. It is available for
|
||||
GNU Parallel 2011XXXX has been released. It is available for
|
||||
download at: http://ftp.gnu.org/gnu/parallel/
|
||||
|
||||
New in this release:
|
||||
|
||||
* Review in Spanish (in print).
|
||||
https://www.linux-magazine.es/issue/67/moreinfo.html
|
||||
|
||||
* Review in French. Thanks to Denis Dordoigne.
|
||||
http://linuxfr.org/2010/12/29/27715.html
|
||||
|
||||
* Use case for memcache.
|
||||
http://www.dctrwatson.com/2010/12/how-to-dump-memcache-keyvalue-pairs-fast/
|
||||
|
||||
* Bug fixes and man page updates.
|
||||
|
||||
= About GNU Parallel =
|
||||
|
|
|
@ -2784,9 +2784,9 @@ sub populate {
|
|||
}
|
||||
}
|
||||
}
|
||||
if($self->{'arg_queue'}->empty() and not $CommandLine::already_spread) {
|
||||
# EOF => Spread the arguments over all jobslots (unless they
|
||||
# are already spread)
|
||||
if(($::opt_m or $::opt_X) and not $CommandLine::already_spread and $self->{'arg_queue'}->empty()) {
|
||||
# -m or -X and EOF => Spread the arguments over all jobslots
|
||||
# (unless they are already spread)
|
||||
$CommandLine::already_spread++;
|
||||
if($self->number_of_args() > 1) {
|
||||
$self->{'max_number_of_args'} =
|
||||
|
|
|
@ -9,5 +9,12 @@ seq 1 92 | parallel -j+3 -kX -s 100 echo
|
|||
echo '### Test distribute arguments at EOF to infinity jobslots'
|
||||
seq 1 92 | parallel -j0 -kX -s 100 echo
|
||||
|
||||
echo '### Test -N is not broken by distribution - single line'
|
||||
seq 9 | parallel -N 10 echo
|
||||
|
||||
echo '### Test -N is not broken by distribution - two lines'
|
||||
seq 19 | parallel -N 10 echo
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -49,7 +49,8 @@ a_b_c_{4}
|
|||
a_b_c_d
|
||||
### Test empty input
|
||||
### Test -m
|
||||
1 2
|
||||
1
|
||||
2
|
||||
### Test :::
|
||||
1
|
||||
### Test context_replace
|
||||
|
|
|
@ -41,3 +41,8 @@
|
|||
90
|
||||
91
|
||||
92
|
||||
### Test -N is not broken by distribution - single line
|
||||
1 2 3 4 5 6 7 8 9
|
||||
### Test -N is not broken by distribution - two lines
|
||||
1 2 3 4 5 6 7 8 9 10
|
||||
11 12 13 14 15 16 17 18 19
|
||||
|
|
Loading…
Reference in a new issue