bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: xargs: possible bug(s)


From: Phil Fisher 02
Subject: RE: xargs: possible bug(s)
Date: Wed, 27 Jan 2010 18:23:05 -0000

Hi Andreas
I am sorry I am now confused.

Your output appears to show the same as my report and I currently
believe this to be incorrect.
My reading of the documentation suggests that  

echo a b c | xargs -I {} -n 6 echo {}

Will return
 a b c

Only.
I.e. there is no {} word in the output.  The {} are the placeholder
reference for xargs in my understanding of the documentation.  That
certainly seems to be given by the ubiquitous example:

$ echo a b c | xargs -I {} mv {} {}.old

That is often quoted.

I would be grateful for further clarification of my understanding.

Phil.

-----Original Message-----
From: Andreas Metzler [mailto:address@hidden 
Sent: 27 January 2010 18:11
To: address@hidden; Phil Fisher 02
Subject: Re: xargs: possible bug(s)

On 2010-01-26 Phil Fisher 02 <address@hidden> wrote:
> Hi Jay
> Thanks for the prompt response.
> I will look and see what seems to be the AIX version implementation.

> Also, on my original "bug report" (please note quotes), xargs appeared

> to reject the use of -I {}.  From what I can see this does not seem to

> be correct.  Can you clarify within your remit?
[...]

Hello,

you were using xargs 4.1.20, a rather old version. I guess this bug has
simply been fixed in the mean time. 4.4.0 does not show the behavior you
described:

address@hidden:~$ echo a b c | xargs -I {} -n 6 echo {} {} a b c
address@hidden:~$ echo a b c | xargs -i -n 6 echo {} {} a b c
address@hidden:~$ echo a b c | xargs -i{} -n 6 echo {} {} a b c
address@hidden:~$ xargs --version xargs (GNU findutils) 4.4.0

cu andreas





This communication together with any attachments transmitted with it ("this 
E-Mail") is intended only for the use of the addressee and may contain 
information which is privileged and confidential.  If the reader of this E-Mail 
is not the intended recipient or the employee or agent responsible for 
delivering it to the intended recipient you are hereby notified that any use, 
dissemination, forwarding, printing or copying of this E-Mail is strictly 
prohibited.  Addressees should check this E-mail for viruses.  The Company 
makes no representations as regards the absence of viruses in this E-Mail.  If 
you have received this E-Mail in error please notify our IT Service Desk 
immediately by e-mail at address@hidden  Please then immediately delete, erase 
or otherwise destroy this E-Mail and any copies of it.

Any opinions expressed in this E-Mail are those of the author and do not 
necessarily constitute the views of the Company.  Nothing in this E-Mail shall 
bind the Company in any contract or obligation.

For the purposes of this E-Mail "the Company" means The Carphone Warehouse 
Group Plc or Best Buy Europe Distributions Limited and/or any of their 
respective subsidiaries.

Please feel free to visit our website:  http://www.carphonewarehouse.com or 
http://www.phonehouse.com

The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal 
Way, London W3 6RS





reply via email to

[Prev in Thread] Current Thread [Next in Thread]