mirror of
https://github.com/uutils/findutils.git
synced 2026-10-16 02:48:31 -07:00
In replace mode (-I/-i/--replace) xargs runs the command once per input item, so with empty input it should run nothing. Instead the final builder was still executed and `CommandBuilder::execute` indexed `extra_args[0]`, which is empty for no input, panicking with index-out-of-bounds. Treat replace mode as implying --no-run-if-empty (as GNU does) so empty input runs nothing and exits 0.