[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #1546] make -0 skip redundant delimiters (like default mode)
From: |
James Youngman |
Subject: |
[patch #1546] make -0 skip redundant delimiters (like default mode) |
Date: |
Sun, 21 Nov 2004 09:12:28 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Epiphany/1.2.9 |
This mail is an automated notification from the patch tracker
of the project: findutils.
/**************************************************************************/
[patch #1546] Latest Modifications:
Changes by:
James Youngman <address@hidden>
'Date:
Sun 11/21/2004 at 14:00 (GMT)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | None | Postponed
------------------ Additional Follow-up Comments ----------------------------
I suppose that there might be some circumstances where the existing behaviour
is preferable. There are lots of ways in which "xargs -0" is different to the
default behaviour, so I don't see analogy with the default behaviour as being a
convincing argument that the behaviour of -0 should change. Is there some
other reason for doing this that I'm missing?
/**************************************************************************/
[patch #1546] Full Item Snapshot:
URL: <http://savannah.gnu.org/patch/?func=detailitem&item_id=1546>
Project: findutils
Submitted by: Pádraig Brady
On: Thu 05/29/2003 at 12:24
Category: xargs bugfix
Priority: 5 - Normal
Resolution: Postponed
Privacy: Public
Assigned to: None
Originator Email:
Status: Open
Summary: make -0 skip redundant delimiters (like default mode)
Original Submission: xargs doesn't ignore "empty" arguments when -0 used
(I.E. when ' ' is the delimiter).
This illustrates the erroneous difference
fixed by the patch
$ echo -ne "1nnn2" | xargs -n1 | od -t x1
0000000 31 0a 32 0a
$ echo -ne "1 00 00 002" | xargs -0 -n1 | od -t x1
0000000 31 0a 0a 0a 32 0a
As you can see the first command works as expected,
whereas the second doesn't.
In summary multiple consequtive ' 's should be squeezed
to 1 ' '
Follow-up Comments
------------------
-------------------------------------------------------
Date: Sun 11/21/2004 at 14:00 By: James Youngman <jay>
I suppose that there might be some circumstances where the existing behaviour
is preferable. There are lots of ways in which "xargs -0" is different to the
default behaviour, so I don't see analogy with the default behaviour as being a
convincing argument that the behaviour of -0 should change. Is there some
other reason for doing this that I'm missing?
-------------------------------------------------------
Date: Thu 05/29/2003 at 13:03 By: Pádraig Brady <pixelbeat>
Is there not enough info in my previous comment?
the output from the 2 commands should be the same.
With the patch the second command outputs the same
as the first.
-------------------------------------------------------
Date: Thu 05/29/2003 at 12:58 By: James Youngman <jay>
Could you privide a test case that demonstrates the problem that this bugfix
actually fixes?
File Attachments
-------------------
-------------------------------------------------------
Date: Thu 05/29/2003 at 12:24 Name: patch_item_1546.patch Size: 2.96KB By:
pixelbeat
patch item 1546
http://savannah.gnu.org/patch/download.php?item_id=1546&item_file_id=1545
For detailed info, follow this link:
<http://savannah.gnu.org/patch/?func=detailitem&item_id=1546>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch #1546] make -0 skip redundant delimiters (like default mode),
James Youngman <=