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 + + * 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 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 address@hidden ... \+} 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 address@hidden 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