On Tue, 3 May 2011, Ole Tange wrote:
On Tue, May 3, 2011 at 4:25 PM, Hans Schou <[email protected]> wrote:
2011/5/3 Ole Tange <[email protected]>:
--keeporder has nothing to do with --nest. It keep the output in the
same order whether or not there are multiple -a. To understand
--keeporder compare the output of there two:
parallel -k sleep {}\; echo {} ::: 4 1 3 2
parallel sleep {}\; echo {} ::: 4 1 3 2
eeeh, yes?
chlor@sko:~$ parallel sleep {}\; echo {} ::: 4 1 3 2
4
1
3
2
chlor@sko:~$
chlor@sko:~$ parallel -k sleep {}\; echo {} ::: 4 1 3 2
4
1
3
2
chlor@sko:~$ parallel --version
GNU parallel 20110422
same same.
Why would I use "not keep order"?
If --nest is combined with -X what would you expect that to do?
I think --arg-file (-a) should conflict or -X should do nothing if
combined with --arg-file.
(If I understand -X correctly)
-X makes perfect sense if there is only one -a or input is from a pipe
(which is the normal situation for use of -X)
And what should -X do when there is 2 or more -a ?
/hans
--
Horsebakken 78, DK-2400 København NV