Skip to content

Fix case-insensitive matching of literal path components - #191

Open
RanaPriyansh wants to merge 2 commits into
rust-lang:masterfrom
RanaPriyansh:fix/case-insensitive-literals-61
Open

RanaPriyansh wants to merge 2 commits into
rust-lang:masterfrom
RanaPriyansh:fix/case-insensitive-literals-61

Conversation

@RanaPriyansh

@RanaPriyansh RanaPriyansh commented Sep 20, 2026

Copy link
Copy Markdown

Fixes #61.

Case-insensitive literal patterns can omit matching files or directories because literal components bypass the pattern matcher.

Enumerate directory entries for these components and use the existing matcher. Preserve direct lookup for case-sensitive, empty, . and .. components. On Windows, use native literal lookup when no directory-entry name matches, preserving paths that use native aliases. Tests cover case variants, intermediate directories, literal hidden files, repeated separators, root paths, and broken symlinks.

Local macOS arm64 checks passed with Rust 1.97.1: focused regressions on default and case-sensitive filesystems, the existing integration test, 16 unit tests, repository Clippy, and formatting. The full local suite remains incomplete because its host-wide traversal test was terminated. The unit results exclude that test.

The first submitted revision failed the Windows regression under a temporary path containing a short alias. This update adds native literal continuation. Windows verification remains pending for the updated revision; macOS checks do not execute that Windows-only branch.

OpenAI Codex assisted with implementation, tests, review, and this description.

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.

glob_with case insensitivity seems broken

1 participant