mmstick/parallel

Referencing argument from input list n

lluchs opened this issue · 0 comments

In GNU parallel, the token {2} means "argument from second input list", whereas here it means "argument from second job". As far as I can see, there's no way to get the first behavior with rust parallel? This makes multiple argument lists less useful.

Example from the GNU parallel man page:

GNU parallel:

% parallel echo {1} {2} {3} ::: 6 7 ::: 4 5 ::: 1 2 3
6 4 1
6 4 2
6 4 3
6 5 1
6 5 2
6 5 3
7 4 1
7 4 2
7 4 3
7 5 1
7 5 2
7 5 3

Rust parallel:

% parallel echo {1} {2} {3} ::: 6 7 ::: 4 5 ::: 1 2 3
6 4 1 6 4 2 6 4 3 6 4 1
6 4 1 6 4 2 6 4 3 6 4 2
6 4 1 6 4 2 6 4 3 6 4 3
6 4 1 6 4 2 6 4 3 6 5 1
6 4 1 6 4 2 6 4 3 6 5 2
6 4 1 6 4 2 6 4 3 6 5 3
6 4 1 6 4 2 6 4 3 7 4 1
6 4 1 6 4 2 6 4 3 7 4 2
6 4 1 6 4 2 6 4 3 7 4 3
6 4 1 6 4 2 6 4 3 7 5 1
6 4 1 6 4 2 6 4 3 7 5 2
6 4 1 6 4 2 6 4 3 7 5 3