On Thu, Aug 15, 2013 at 06:59:26PM +0200, Joey Hess wrote:
> Rene Engelhard wrote:
> > I thought about find not caring about the -exec return status, but:
> >
> > rene@frodo:~$ find tmp -name "notexisting" | xargs rm
>
> No -exec there.
Yeah, my bad.
> It seems find *does* ignore the -exec exit status, which is news to me,
> and seems to make -exec a misfeature.
>
> joey@gnu:~/tmp/empty>touch file
> joey@gnu:~/tmp/empty>find -exec false {} \; && echo $?
> 0
Indeed..
> I wonder if there is some way to propigate that value to the exit
> code of find. If not, find -exec should be deprecated in any serious
> code..
And It's a find(utils) bug, too..
Regards,
Rene
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]