bugGNU Parallel - Bugs: bug #35465, filenames on the command line can...

 
 

bug #35465: filenames on the command line can contain newline

Submitter:  Ole Tange <tange>
Submitted:  Tue 07 Feb 2012 11:50:52 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  tange
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 23 Oct 2012 04:14:00 PM UTC, comment #3: 

Currently all args on the command line are put into files.

So do implement this we would have to have a separate delimiter for ::: input sources.

This is too much work for too little benefit: It only helps if filenames contain \n.

The workaround for the user is to use -0.


Ole Tange <tange>
Group administrator
Sat 12 May 2012 11:41:39 PM UTC, comment #2: 

Using -0 does the right thing.

parallel -0 echo ::: a* ::: 1 2

Can -0 be in effect for all ':::' while -d is different for :::: ?

Ole Tange <tange>
Group administrator
Mon 12 Mar 2012 11:18:47 PM UTC, comment #1: 

A better test:

touch a'
'b
seq 2 | parallel echo ::: a* :::: -

Ole Tange <tange>
Group administrator
Tue 07 Feb 2012 11:50:52 AM UTC, original submission:  

If filenames given on the commandline contains newline, GNU Parallel does the wrong thing.

touch a'
'b
parallel touch {} ::: *
ls -l

Ole Tange <tange>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tange (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-10-23 tange StatusConfirmed Wont Fix
        Assigned toNone tange
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code