Overview
| Artifact ID: | 27f335fe8d5d8984a8424f118831d153a93b7a81f8010181125f2569c8cdb868 |
|---|---|
| Ticket: | 108904173c1a823a20823885c7b29ab536434a5a
glob and file normalize inconsistencies on case insensitive filesystem |
| User & Date: | apnadkarni on 2026-03-27 11:16:04 |
Changes
- closer changed to: "nobody"
- icomment:
Re-opening because although fixed for Windows, apparently the bug also shows up on macOS as exhibited by additional tests added. I do not have or use a mac so someone with access will have to follow up. Was not even aware that macOS also has case-insensitive file system. ``` ==== filesystem-11.1 Bug 10890417 - case of tail is correct after normalization FAILED ==== Contents of test case: tcltest::makeFile "" mIxEdCaSe.TxT lmap file1 [glob [tcltest::temporaryDirectory]/mixedcase.txt [tcltest::temporaryDirectory]/MIXEDCASE.TXT [tcltest::temporaryDirectory]/mIxEdCaSe.TxT ] { file normalize $file1 } ---- Result was: /Users/runner/work/tcl/tcl/unix/mixedcase.txt /Users/runner/work/tcl/tcl/unix/MIXEDCASE.TXT /Users/runner/work/tcl/tcl/unix/mIxEdCaSe.TxT ---- Result should have been (exact matching): /Users/runner/work/tcl/tcl/unix/mIxEdCaSe.TxT ``` To summarize the bug, `file normalize` should, as per documentation, normalize the file path to reflect the name on disk. This does not seem to happen when normalizing the result of `glob` when no special characters are present. `file normalize [glob MIXEDCASE.TXT]` should return `mIxEdCase.Txt` if that is the actual file name. Instead it returns `MIXEDCASE.TXT`. - login: "apnadkarni"
- mimetype: "text/x-markdown"
- resolution changed to: "Accepted"
- status changed to: "Open"