Etaoin Shrdlu <shr...@unlimitedmail.org> wrote:

> On Saturday 29 May 2010, Daniel D Jones wrote:
> > On Wednesday 26 May 2010 06:42:08 Joerg Schilling wrote:
> > > Patrick Holthaus <patrick.holth...@uni-bielefeld.de> wrote:
> > > > You might try:
> > > >
> > > > find -name *.ext -print0 | xargs -0 rm
> > >
> > > But this is non-standard.
> > 
> > In what way is this non-standard?  That is, what standard is it contrary
> >  to?
>
> SUS (aka POSIX), although some people are pushing to include -print0 | xargs 
> -0 into the standard. What Joerg meant is that the above construct will only 
> run when using GNU find and xargs. Of course, if you're running Linux, that 
> is 
> probably the case already anyway.
>

And there is a big cheavat against this proposal as xargs -0 was introduced 
long after -exec + exsists and as introducing xargs -0 would force us to 
change _many_ other utilities too in order to come to a consistent overall
behavior again. For this reason, there was even the proposal to instead remove 
"xargs" from the standard as -exec + does everything that is needed.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       j...@cs.tu-berlin.de                (uni)  
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to