Establish glob starting locations before wildcard discovery

This commit is contained in:
2026-12-05 20:46:47 +00:00
parent 9c02607c26
commit 30f04dd5e1
3 changed files with 140 additions and 3 deletions

View File

@@ -292,6 +292,11 @@ end to end with existing diagnostics, version processing and accounting.
## Stage 7 — Establish glob roots and literal starting locations
Completed: globs inspect their literal prefix before wildcard discovery, admitting
resolution ancestors of an explicit root while checking the actual starting
location. Absolute host/native, fully literal, missing-prefix and outside-root
cases pass alongside existing glob selection tests.
Implement rooted glob initialization in `glob.go` using stage 5's root parsing
and literal resolution. Establish the longest literal starting directory before
the first wildcard, decoding literal escapes through the existing glob helpers.