bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #37956, --colsep does not default to '\t'...

 
 

bug #37956: --colsep does not default to '\t' as specified in the man page.

Submitted by:  Drew Frank <drewfrank>
Submitted on:  Wed 19 Dec 2012 06:32:54 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 28 Dec 2012 08:36:45 PM UTC, comment #2:

Fixed in [b6056bb876]

Ole Tange <tange>
Project AdministratorIn charge of this item.
Wed 19 Dec 2012 02:29:52 PM UTC, comment #1:

Minimal example:

printf "A\tB\n1\tone" | parallel --header : echo {B} {A}

Ole Tange <tange>
Project AdministratorIn charge of this item.
Wed 19 Dec 2012 06:32:54 AM UTC, original submission:

The following Bash session reproduces the bug:

# cat args
A B
1 one
2 two
# parallel --header : -a args "echo {B} {A}"
{B} {A} 1 one
{B} {A} 2 two
# parallel --header : -a args --colsep '\t' "echo {B} {A}"
one 1
two 2

The output of the two calls to parallel should be the same, according to my interpretation of the following man page excerpt:

"For normal usage the matched header (typically the first line: --header '\n') will be split using --colsep (which will default to '\t') and column names can be used as replacement variables..."

Drew Frank <drewfrank>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 28 Dec 2012 08:36:45 PM UTCtangeStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
      Summary--colsep does not default to \'\\t\' as specified in the man page.=>--colsep does not default to '\t' as specified in the man page.
    Wed 19 Dec 2012 02:29:52 PM UTCtangeStatusNone=>Confirmed
      Assigned toNone=>tange
      Summary--colsep does not default to \'\\t\' as specified in the man page.=>--colsep does not default to '\t' as specified in the man page.

    Back to the top


    Powered by Savane 3.1-cleanup1