On 8/20/07, Reuben Thomas <[EMAIL PROTECTED]> wrote:
> Node: Single File
>
> "Any command lines which have been built by `-exec ... \+' or `-execdir ...
> \+' are invoked before the program is executed."
>
> Should "executed" be "exited"?

D'oh!    Thanks for the correction.   Yes, you are right.   Silly me.
 I have applied the attached (obvious) patches to the 4.2.x and 4.3.x
code base.

Thanks!
James.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/findutils/findutils/ChangeLog,v
retrieving revision 1.86.2.32
diff -u -r1.86.2.32 ChangeLog
--- ChangeLog	18 Aug 2007 16:54:15 -0000	1.86.2.32
+++ ChangeLog	20 Aug 2007 09:54:50 -0000
@@ -1,3 +1,10 @@
+2007-08-20  James Youngman  <[EMAIL PROTECTED]>
+ 
+	* doc/find.texi (Directories): Clarify that built commands which
+	have not been executed yet will be executed before find quits,
+	even with -quit.  Also clarify the difference between -prune and
+	-quit. 
+
 2007-08-18  Eric Blake  <[EMAIL PROTECTED]>
 
 	Fix Savannah bug #20751.
Index: doc/find.texi
===================================================================
RCS file: /cvsroot/findutils/findutils/doc/find.texi,v
retrieving revision 1.109.2.20
diff -u -r1.109.2.20 find.texi
--- doc/find.texi	5 Aug 2007 12:48:54 -0000	1.109.2.20
+++ doc/find.texi	20 Aug 2007 09:54:51 -0000
@@ -1198,11 +1198,14 @@
 
 @deffn Action -quit
 Exit immediately (with return value zero if no errors have occurred).
-No child processes will be left running, but no more files specified
-on the command line will be processed.  For example, @code{find
-/tmp/foo /tmp/bar -print -quit} will print only @samp{/tmp/foo}.  Any
-command lines which have been built by @samp{-exec ... \+} or
[EMAIL PROTECTED] ... \+} are invoked before the program is executed.
+This is different to @samp{-prune} because @samp{-prune} only applies
+to the contents of pruned directories, whilt @samp{-quit} simply makes
[EMAIL PROTECTED] stop immediately.  No child processes will be left
+running, but no more files specified on the command line will be
+processed.  For example, @code{find /tmp/foo /tmp/bar -print -quit}
+will print only @samp{/tmp/foo}.  Any command lines which have been
+built by @samp{-exec ... \+} or @samp{-execdir ... \+} are invoked
+before the program is exited.
 @end deffn
 
 @deffn Option -noleaf
Index: ChangeLog
===================================================================
RCS file: /sources/findutils/findutils/ChangeLog,v
retrieving revision 1.257
diff -u -r1.257 ChangeLog
--- ChangeLog	19 Aug 2007 15:31:38 -0000	1.257
+++ ChangeLog	20 Aug 2007 09:49:25 -0000
@@ -1,3 +1,10 @@
+2007-08-20  James Youngman  <[EMAIL PROTECTED]>
+
+	* doc/find.texi (Directories): Clarify that built commands which
+	have not been executed yet will be executed before find quits,
+	even with -quit.  Also clarify the difference between -prune and
+	-quit.
+
 2007-08-18  Eric Blake  <[EMAIL PROTECTED]>
 
 	Fix Savannah bug #20751.
Index: doc/find.texi
===================================================================
RCS file: /sources/findutils/findutils/doc/find.texi,v
retrieving revision 1.144
diff -u -r1.144 find.texi
--- doc/find.texi	5 Aug 2007 12:22:13 -0000	1.144
+++ doc/find.texi	20 Aug 2007 09:49:28 -0000
@@ -1327,11 +1327,14 @@
 
 @deffn Action -quit
 Exit immediately (with return value zero if no errors have occurred).
-No child processes will be left running, but no more files specified
-on the command line will be processed.  For example, @code{find
-/tmp/foo /tmp/bar -print -quit} will print only @samp{/tmp/foo}.  Any
-command lines which have been built by @samp{-exec ... \+} or
[EMAIL PROTECTED] ... \+} are invoked before the program is executed.
+This is different to @samp{-prune} because @samp{-prune} only applies
+to the contents of pruned directories, whilt @samp{-quit} simply makes
[EMAIL PROTECTED] stop immediately.  No child processes will be left
+running, but no more files specified on the command line will be
+processed.  For example, @code{find /tmp/foo /tmp/bar -print -quit}
+will print only @samp{/tmp/foo}.  Any command lines which have been
+built by @samp{-exec ... \+} or @samp{-execdir ... \+} are invoked
+before the program is exited.
 @end deffn
 
 @deffn Option -noleaf

Reply via email to