bugfindutils - Bugs: bug #18573, xargs doesn't handle filenames...

 
 

bug #18573: xargs doesn't handle filenames with path on Windows

Submitted by:  Bill McCarthy <rhouwjm>
Submitted on:  Fri 22 Dec 2006 01:48:02 AM UTC  
 
Category:  xargs Severity:  3 - Normal
Item Group:  Wrong result Status:  Invalid
Privacy:  Public Assigned to:  James Youngman <jay>
Originator Name:  Bill McCarthy Open/Closed:  Closed
Release:  4.2.20 Fixed Release:  None

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Fri 22 Dec 2006 11:35:36 AM UTC, comment #2: 

Eric is right.   Backslash is the quoting character for xargs.   From the first paragraph of the manual page:

xargs reads items from the standard input, delimited by blanks  which can be protected with double or single quotes or a backslash) or newlines, and executes the command (default is /bin/echo) one or more times with any initial-arguments followed by items read from standard input.

James Youngman <jay>
Project AdministratorIn charge of this item.
Fri 22 Dec 2006 04:46:21 AM UTC, comment #1: 

This does not seem like a findutils bug, but a misunderstanding on your part on how to properly quote arguments so that the \ is preserved and passed into xargs.

P.S. How up-to-date is the gnuwin32 version?  You may want to consider using the cygwin version instead, which is probably more current.  Also, the cygwin version lets you use either \ or / as a path separator, but it is much easier using / since it doesn't get confused with a character quotation device.

Eric Blake <ericb>
Project Administrator
Fri 22 Dec 2006 01:48:02 AM UTC, original submission:  

Using the gnuwin32 version, I would expect it to know about the backslash.

Giving in files such as c:\pad\temp\a c:\pad\temp\b c:\pad\temp\c

It turns them into c:padtempa c:padtempb c:padtempc

This renders xargs fairly useless.

Bill McCarthy <rhouwjm>

 

(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 jay (Posted a comment)
  • -email is unavailable- added by ericb (Posted a comment)
  • -email is unavailable- added by rhouwjm (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2006-12-22 jay StatusNone => Invalid
        Assigned toNone => jay
        Open/ClosedOpen => Closed

    Back to the top


    Powered by Savane 3.5