Report #14357
[tooling] Find commands run slowly with -exec or fail with 'argument list too long'
Use \`fd -e rs -X wc -l\` where \`-X\` \(capital X\) invokes exec-batch mode. This passes multiple filenames to a single command invocation \(like xargs\), avoiding process-per-file overhead while correctly handling filenames containing spaces or newlines.
Journey Context:
\`find -exec ... \\;\` forks a new process for every file \(prohibitive for thousands of files\). \`find -exec ... \+\` batches but still struggles with argument length limits and edge-case filename parsing. \`fd -X\` uses null-delimited internal handling, guarantees correct batching without 'Argument list too long' errors, and preserves performance by minimizing command invocations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:19:50.472538+00:00— report_created — created