Subject: bin/20470: find(1) doesn't implement -exec + (POSIX)
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/22/2003 23:13:29
>Number:         20470
>Category:       bin
>Synopsis:       find(1) doesn't implement -exec + (POSIX)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jhawk
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 22 20:14:00 PST 2003
>Originator:     John Hawkinson
>Release:        NetBSD 1.6_STABLE
System: NetBSD 1.6_STABLE NetBSD 1.6_STABLE (GENERICDEBUG) #1: Thu Jan 9 12:38:32 EST 2003 i386
Architecture: i386
Machine: i386
	Our find does not implement -exec +. From POSIX 1003.1-2001:

-exec  utility_name  [argument ...] ;
-exec  utility_name  [argument ...]   {} +
If the primary expression is punctuated by a plus sign, the
primary shall always evaluate as true, and the pathnames for
which the primary is evaluated shall be aggregated into
sets. The utility utility_name shall be invoked once for
each set of aggregated pathnames. Each invocation shall
begin after the last pathname in the set is aggregated, and
shall be completed before the find utility exits and before
the first pathname in the next set (if any) is aggregated
for this primary, but it is

...mourn for gnu find's -printf, and realize that this can be used
to solve some of the same problems...
	Simple matter of programming.