|
From: | James Youngman |
Subject: | [bug #19904] xargs produces different output with similar parameter |
Date: | Sat, 19 May 2007 11:05:57 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060830 Firefox/1.5.0.7 (Debian-1.5.dfsg+1.5.0.7-2) |
Update of bug #19904 (project findutils): Status: None => Invalid Assigned to: None => jay _______________________________________________________ Follow-up Comment #2: I believe you have misunderstood how the -d option works. If you use "xargs -d '<SPACE>'" then newline is not a separator. The "extra" newline is simply the last character in the last argument. This example may make this clearer for you: $ printf "foo bar\nbaz ugh quux\n" | ./xargs -n1 -d ' ' echo X X foo X bar baz X ugh X quux $ echo "foo bar" | tr -d '\n' | ./xargs -n1 -d ' ' echo ZZZ ZZZ foo ZZZ bar _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?19904> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |