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

 
 

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

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

Add a New Comment Rich Markup
   

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>
Group administrator
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>
Group 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)
  •  

    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
    2006-12-22 jay StatusNone Invalid
        Assigned toNone jay
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code