mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17: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,
|
ryoichiro.suzuki@gmail.com,kerick@shiftedbit.net,
|
||||||
Christian Faulhammer <fauli@gentoo.org>
|
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/
|
download at: http://ftp.gnu.org/gnu/parallel/
|
||||||
|
|
||||||
New in this release:
|
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.
|
* Review in French. Thanks to Denis Dordoigne.
|
||||||
http://linuxfr.org/2010/12/29/27715.html
|
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.
|
* Bug fixes and man page updates.
|
||||||
|
|
||||||
= About GNU Parallel =
|
= About GNU Parallel =
|
||||||
|
|
|
@ -2784,9 +2784,9 @@ sub populate {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($self->{'arg_queue'}->empty() and not $CommandLine::already_spread) {
|
if(($::opt_m or $::opt_X) and not $CommandLine::already_spread and $self->{'arg_queue'}->empty()) {
|
||||||
# EOF => Spread the arguments over all jobslots (unless they
|
# -m or -X and EOF => Spread the arguments over all jobslots
|
||||||
# are already spread)
|
# (unless they are already spread)
|
||||||
$CommandLine::already_spread++;
|
$CommandLine::already_spread++;
|
||||||
if($self->number_of_args() > 1) {
|
if($self->number_of_args() > 1) {
|
||||||
$self->{'max_number_of_args'} =
|
$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'
|
echo '### Test distribute arguments at EOF to infinity jobslots'
|
||||||
seq 1 92 | parallel -j0 -kX -s 100 echo
|
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
|
a_b_c_d
|
||||||
### Test empty input
|
### Test empty input
|
||||||
### Test -m
|
### Test -m
|
||||||
1 2
|
1
|
||||||
|
2
|
||||||
### Test :::
|
### Test :::
|
||||||
1
|
1
|
||||||
### Test context_replace
|
### Test context_replace
|
||||||
|
|
|
@ -41,3 +41,8 @@
|
||||||
90
|
90
|
||||||
91
|
91
|
||||||
92
|
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