[Bug 270394] find(1): doesn't pass all files to the -exec utility
Date: Wed, 22 Mar 2023 01:44:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270394
Bug ID: 270394
Summary: find(1): doesn't pass all files to the -exec utility
Product: Base System
Version: 13.1-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: yuri@freebsd.org
This script demonstrates the problem:
rm -rf x
mkdir x
touch x/a
touch x/b
touch x/c
find x -type f \
-exec sh -c 'echo "files=$@"' {} +
It prints 'files=x/b x/c' instead of 'files=x/a x/b x/c'.
The first file is always missing.
FreeBSD 13.1-STABLE #0 stable/13-n253229-dd7b7807c32a
--
You are receiving this mail because:
You are the assignee for the bug.