]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Document AIX 7.3 find exec + bug
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 30 Jan 2025 04:02:25 +0000 (20:02 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 30 Jan 2025 04:13:20 +0000 (20:13 -0800)
* doc/autoconf.texi (Limitations of Usual Tools):
Document AIX 7.3 bug with exit status of ‘find ... -exec ... +’.

doc/autoconf.texi

index 07794561e2dfd270222cf9f94c5e3e52e7cc3917..8dffd02c1f824102086802db106d9dc4eb0f3ddc 100644 (file)
@@ -19358,6 +19358,13 @@ $ @kbd{find . -name foo -exec echo '@{@}-@{@}' \;}
 while GNU @command{find} reports @samp{./foo-./foo}.
 POSIX allows either behavior.
 
+AIX 7.3 @samp{find ... -exec @var{command} +} incorrectly fails if
+@var{command} is not executed.  For example, @samp{find . -name '*.tmp'
+-exec rm @{@} +} incorrectly outputs a diagnostic and fails if no file
+names end in @samp{.tmp}.  To work around this problem you can use a
+circumlocution like @samp{find . -name '*.tmp' -exec rm -f @{@} + -o
+-exec true ';'}.
+
 @anchor{grep}
 @item @command{grep}
 @c -----------------