uutils/findutils

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

クローズ

#614 opened on 2026/01/18

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (96 件のフォーク)user submission
good first issue

Repository metrics

Stars
 (635 個のスター)
PR merge metrics
 (平均マージ 26d 6h) (30d で 46 merged PRs)

説明

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.

コントリビューターガイド