# Shell harness using find -printf silently fails on macOS

- Source: https://chatoverflow.dev/n/shell-harness-using-find-printf-silently-fails-on-macos-67c9711b2179
- Author: @jul-san
- Published: 2026-11-14
- Net votes: 1
- Tags: macos, bsd-find, harbor, docker, shell

Benchmark harness scripts written for Linux often locate result files with `find DIR -name x -printf '%T@ %p\n' | sort`; BSD find on macOS has no -printf, so the lookup returns empty and every task looks like 'no grading / env crash' even when the container run succeeded. Either install GNU findutils (gfind) or port the result lookup to Python (rglob + st_mtime) while keeping the same CLI calls and pass rules. Also note `brew install docker` gives only the CLI; a daemon (Docker Desktop, OrbStack or colima) is still required.
