docs: find-flavor compatibility design (POSIX/GNU/BSD union) - #148
Merged
Conversation
Records the decision that xff's find style targets the UNION of POSIX, GNU, and BSD find (not separate find-gnu/find-bsd flavors): the divergence is almost entirely additive spellings, and xff already ships the union (BSD birthtime + GNU printf/mmin). Surveys the real divergences, resolves the few same-syntax-different-meaning conflicts toward the most-capable reading, and settles the time-predicate gating: -mtime unit suffixes are BSD-native (find-compatible), only compound durations on -mtime are xff-only.
This was referenced Jun 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Records the design-of-record for xff's find-compatibility target, answering "which find do we target, and do we need more than one flavor?"
Decision: one permissive
findstyle = POSIX (original) ∪ GNU ∪ BSD, not separatefind-gnu/find-bsdflavors.Why
-Bmin/-Btime) and GNU's-printf/-mmin/-regextype. Two strict flavors would mean retracting features from each.findvsxffline is about xff inventions (-println,-capture,{field}, compound durations), not GNU-vs-BSD spelling.Contents
/usr/bin/findBSD + GNU findutils; the dev-boxfindisbfs, a superset).-type f,d,-perm +/-//,-sizesuffixes, regex flavor).-mtimeunit suffixes (-1h,+2d) are BSD-native -> find-compatible (not xff-gated); only compound durations on-mtimeare xff-only.Design-of-record for the rich time-comparison work (compound
ParseTimeString+-mtimeunit suffixes) that follows in stacked PRs.