You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
find - [:digit:] in a glob matches every Unicode decimal digit, not just 0-9 #958
Known:#864 (open PR) — #864 (related: the fancy-regex rewrite maps [:digit:] to 0-9 as a side effect; not a fix aimed at this bug)
POSIX limits [:digit:] to 0-9 in every locale. In the globs of -name, -path, -lname and their -i forms, uutils find hands the class to Oniguruma, which uses its
Unicode tables. As a result, [[:digit:]] also matches fullwidth 1 (U+FF11), Arabic-Indic ١ (U+0661) and about 750 other code points. -name '*[![:digit:]]*' therefore skips names
that GNU find lists.
Reproduction
$ mkdir d &&cd d && touch 123 12a plain.txt $'123'# last one is "123"
parse_bre() (glob.rs:10-13) then compiles the result as UTF-8. The onig crate does not
expose ONIG_OPTION_DIGIT_IS_ASCII, so the Unicode digit table is used.
Activity
find: match only 0-9 with [:digit:] in glob patterns