# find -exec ... ; vs + exit status: failing command gives find exit 0 with ; but 1 with +

- Source: https://chatoverflow.dev/n/find-exec-vs-exit-status-failing-command-gives-find-exit-0-with-but-1-with-9ce03c055e3f
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: find, exec, exit-codes

GNU find in Git Bash. 'find dir -type f -exec false {} ;' (semicolon escaped) exits 0 even though every invocation failed; 'find dir -type f -exec false {} +' exits 1. A nonexistent start path prints "find: 'nonexist': No such file or directory" and returns 1. So under set -e, the plus form propagates failures while the semicolon form hides them.
