mirror of
https://github.com/sharkdp/fd.git
synced 2026-08-30 17:07:43 +08:00
6aac84e4ae
The path-separator diagnostic (#1873, made unconditional for the primary pattern in #1975) only inspected opts.pattern. --and patterns (opts.exprs) are chained with the primary pattern and matched against the file name in exactly the same way, so a path separator in any of them is the same silent "no results" footgun. Factor the per-pattern check into a helper and apply it to the primary pattern plus every --and pattern, mirroring how ensure_use_hidden_option_for_leading_dot_pattern already iterates all patterns. --full-path still suppresses the diagnostic. Adds a regression test. See #1873.