Skip to content

Exit non-zero on filesystem traversal errors - #2095

Open
ezekiel06 wants to merge 1 commit into
sharkdp:masterfrom
ezekiel06:fix-1985-exit-code-on-traversal-error
Open

Exit non-zero on filesystem traversal errors#2095
ezekiel06 wants to merge 1 commit into
sharkdp:masterfrom
ezekiel06:fix-1985-exit-code-on-traversal-error

Conversation

@ezekiel06

Copy link
Copy Markdown

fixes the exit-code part of #1985; used Claude to investigate and write the fix, reviewed and tested it myself

fd previously reported success even when it hit a traversal error
mid-search (e.g. ENAMETOOLONG on a very deep path), silently
truncating results without signaling failure. Now the exit code
reflects the error for normal output, --exec, and --exec-batch,
regardless of --show-errors.

Fixes part of sharkdp#1985.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant