[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Use of non-portable find options in Makefile.in

From: Peter Samuelson <peters_at_p12n.org>
Date: Tue, 4 Mar 2014 20:08:40 -0600

[Ben Reser]
> I started this usage with r1421636. The purpose is to avoid length limitations
> on the argument list not spaces creating problems. We could change it to just:
> rm -rf subversion/tests/cmdline/svn-test-work/*

Note also, if you _are_ worried about command line length limits, it's
easy to buy yourself a lot more breathing room:

        cd subversion/tests/cmdline/svn-test-work; rm -fr *

Those long subdir prefixes on each filename argument really do add up.

> find . -name "*.gcda" -o -name "*.gcno" -print0 | xargs -0 rm -f --

Also, while -print0 and xargs -0 are not portable, the find | xargs
pattern itself was made somewhat obsolete by the find...-exec...+,
which I believe is in POSIX. While find...-exec...';' runs one
instance per file, find...-exec...+, like xargs, processes as many
files at a time as will fit.
Received on 2014-03-05 03:09:22 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.