[Novalug] Fwd: perl help | filename spaces
Jon LaBadie
novalugml at jgcomp.com
Sat Mar 20 10:18:34 EDT 2010
On Sat, Mar 20, 2010 at 06:26:57AM -0400, Michael Henry wrote:
> On 03/19/2010 03:47 PM, jecottrell3 at comcast.net wrote:
>
> > And while the single file version of -exec returns an exit
> > status on each file, it's not clear that the multiple version
> > one does, meaning that find could indeed fork and execute as
> > two processes.
>
> The ``find`` specification defines the return value of
> ``-exec ... +`` to be always true:
>
> http://www.opengroup.org/onlinepubs/009695399/utilities/find.html
>
> If the primary expression is punctuated by a plus sign, the
> primary shall always evaluate as true [...]
Another interesting difference. The -exec ... ; primary can evaluate
false but the -exec ... + primary cannot.
Yet the exit status of find must be "failed" if any -exec ... +
execution fails.
Too much detail :)
--
Jon H. LaBadie jon at jgcomp.com
JG Computing
12027 Creekbend Drive (703) 787-0884
Reston, VA 20194 (703) 787-0922 (fax)
More information about the Novalug
mailing list