2
0
mirror of git://git.sv.gnu.org/autoconf synced 2025-04-24 15:40:44 +08:00

Document AIX 7.3 find exec + bug

* doc/autoconf.texi (Limitations of Usual Tools):
Document AIX 7.3 bug with exit status of ‘find ... -exec ... +’.
This commit is contained in:
Paul Eggert 2025-01-29 20:02:25 -08:00
parent cbb9e1e834
commit 4c8c67c444

@ -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 -----------------