bugfindutils - Bugs: bug #18713, "" or '' at the end of...

 
 

bug #18713: "" or '' at the end of xargs input doesn't generate an empty argument

Submitted by:  None
Submitted on:  Sat 06 Jan 2007 08:42:31 PM UTC  
 
Category: xargsSeverity: 3 - Normal
Item Group: Wrong resultStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Stephane ChazelasOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.2.29
Fixed Release: 4.3.3

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 07 Jan 2007 06:11:58 PM UTC, comment #1:

The situation appears to be the same for initial quoted but empty arguments, too. Fixed in the CVS code for xargs 4.3.x. The next release in that series will be 4.3.3. A patch is attached.

(file #11691)

James Youngman <jay>
Project AdministratorIn charge of this item.
Sat 06 Jan 2007 08:42:31 PM UTC, original submission:

~$ echo 'foo ""' | xargs printf '<%s>\n'
<foo>

While the following should have been output:
<foo>
<>

It's OK when followed with something:

~$ echo 'foo "" bar' | xargs printf '<%s>\n'
<foo>
<>
<bar>
~$ echo 'foo "" ' | xargs printf '<%s>\n'
<foo>
<>

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #11691:  sv-bug-18713.patch added by jay (5KiB - text/x-diff - Patch for findutils-4.3.x.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jay (Updated 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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 15 Apr 2007 07:41:53 PM UTCjayOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.3.3
    Sun 07 Jan 2007 06:11:58 PM UTCjayAttached File-=>Added sv-bug-18713.patch, #11691
      StatusNone=>Fixed
      Assigned toNone=>jay

    Back to the top


    Powered by Savane 3.1-cleanup1