bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #37779, Make result file names insensitive...


bug #37779: Make result file names insensitive to order of input sources when using --header

Submitted by:  Drew Frank <drewfrank>
Submitted on:  Tue Nov 20 07:19:01 2012  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Mon Nov 26 20:41:13 2012, comment #2:

Fixed in [d47e130]

Ole Tange <tange>
Project Administrator
Tue Nov 20 07:58:44 2012, comment #1:

Thinking about this more, it's not quite as clean as I initially thought since not all arguments may even occur in the command itself, e.g.
./parallel --results foo_ --header : echo {a} ::: a 1 ::: b 2. In such a case I would still want "b?2" to appear in the result file name. Also, some arguments might occur multiple times in the command.

Drew Frank <drewfrank>
Project Member
Tue Nov 20 07:19:01 2012, original submission:

When called with both --header and --results, parallel stores job outputs in result files named according to the their corresponding input values. For example:

./parallel --results foo_ --header : echo {a} {b} ::: a 1 ::: b 2

generates the result file:


where I have represented tabs with '?' for visual clarity. Now suppose the input sources were given in reverse order:

./parallel --results foo_ --header : echo {a} {b} ::: b 2 ::: a 1

Currently, parallel will write the results to


Since the same command is run in both cases, it seems more natural for the file name to be based on the order that the arguments occur in the pre-substitution command. With that behavior, both of these examples would use the "a?1?b?2" ordering.

Drew Frank <drewfrank>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by tange (Posted a comment)
  • -unavailable- added by drewfrank (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Nov 26 20:41:13 2012tangeStatusNone=>Fixed
    Tue Nov 20 07:19:57 2012drewfrankSummaryMake result file names insensitive to order of input source when using --header=>Make result file names insensitive to order of input sources when using --header
    Tue Nov 20 07:19:46 2012drewfrankSummarySurprising behavior in result file name generation=>Make result file names insensitive to order of input source when using --header

    Back to the top

    Powered by Savane 3.1-cleanup1