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

 
 

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

Submitter:  None
Submitted:  Sat 06 Jan 2007 08:42:31 PM UTC
   
 
Category:  xargs Severity:  3 - Normal
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Stephane Chazelas Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.2.29
Fixed Release:  4.3.3
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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 Files:
   
   
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
  • -email is unavailable- added by jay (Updated 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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-04-15 jay Open/ClosedOpen Closed
        Fixed ReleaseNone 4.3.3
    2007-01-07 jay Attached File- Added sv-bug-18713.patch, #11691
        StatusNone Fixed
        Assigned toNone jay

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code