uutils/findutils

`find -exec {} [args...] \;` fails

Geschlossen

#614 geöffnet am 18.01.2026

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (96 Forks)user submission
good first issue

Repository-Metriken

Stars
 (635 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 26T 6h) (46 gemergte PRs in 30 T)

Beschreibung

revision: 245623ecc6a19537b9f1fd94cb917653f170291d

cd /
find /usr/bin -name pwd -exec {} -P ';'  # /usr/bin/pwd -P

GNU and BSD show

/

and exit zero, whereas uutils fails:

Failed to run {}: No such file or directory (os error 2)

As per https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/utilities/find.html, this is valid.

-exec utility_name [argument ...] ; … A utility_name or argument containing only the two characters "{}" shall be replaced by the current pathname.

Contributor Guide