Overview
| Artifact ID: | 6fe05f2c89086d17e6af95d1065255402d9e038c52f00aa1cc99479d3ebf8e04 |
|---|---|
| Ticket: | 108904173c1a823a20823885c7b29ab536434a5a
glob and file normalize inconsistencies on case insensitive filesystem |
| User & Date: | apnadkarni on 2026-03-22 03:34:24 |
Changes
- icomment:
I'm inclined to agree with Julian there is a bug. Somewhere. I will ignore cross-mounting etc. because that only confuses me further. Just sticking to Windows and NTFS, the following does not seem consistent or correct. ``` % set files [glob -dir d:/src RUFF] d:/src/RUFF % file normalize [lindex $files 0] D:/src/RUFF % file normalize D:/src/RUFF D:/src/ruff ``` The *unique* and *case-dependent path* terms in the `file normalize` [manpage](https://www.magicsplat.com/tcl-docs/tcl/TclCmd/file.html#M32) clearly would lead one to expect those last two commands to return the same value. The bug manifests in `file normalize` as `glob` makes no claim that it returns normalized paths (and nor should it). However, it's possible the cause of the bug is the internal representation being marked as "normalized" by the glob implementation when in fact it isn't (pure conjecture).
- login: "apnadkarni"
- mimetype: "text/x-markdown"