Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Referencing argument from input list n #60

Open
lluchs opened this issue Nov 19, 2017 · 0 comments
Open

Referencing argument from input list n #60

lluchs opened this issue Nov 19, 2017 · 0 comments
Milestone

Comments

@lluchs
Copy link

lluchs commented Nov 19, 2017

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
@mmstick mmstick added this to the 0.12 Rewrite milestone Dec 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants