Overview
| Artifact ID: | 1b76888a0c7db29fafa624da876c9ba1063476ef5157acfd3ee27b26a94dd95a |
|---|---|
| Ticket: | e6ca0b1b678f89f0cd6228d9a84604f5a950637a
glob inconsistencies on macos |
| User & Date: | apnadkarni on 2026-03-31 05:20:16 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- comment changed to:
(Copied from core mailing list) It seems to me then that Tcl on macos has at least one, and possibly up to three, bugs. Inconsistent case-sensitivity in matching. I expect ``` glob /tmp/MIXEDCASE glob /tmp/M* ``` both to either include MiXeDcAsE in the return or not, depending on case sensitivity of the file system. But the results do not match. Likewise for ``` glob /tmp/mixedcase glob /tmp/m* ``` I think this is a definite bug because it is inconsistent. Second *possible* bug is that Tcl does case-sensitive matching on macos when the expectation is case-insensitive. It's confusing for me because as per Google (and verified by Kevin), modern Macs have case-insensitive file systems by default. Mac users need to comment and take a call on this. (Not from the tests, but reading the code) file normalize possibly has the same bug it had on Windows where it did not actually normalize to a unique file system representation. For now, I’m disabling the tests I added on MacOS. ``` -----Original Message----- From: Torsten Berg <be...@ty...> Sent: Monday, March 30, 2026 11:30 PM To: <apn...@ya...> <apn...@ya...> Cc: tcl...@li... Subject: Re: [TCLCORE] Question for Mac users Using Tcl 8.6.16 on a macOS using an internal SSD formatted as APFS, not case-sensitive: () 1 % glob /tmp/MIXEDCASE /tmp/MIXEDCASE () 1 % glob /tmp/mixedcase /tmp/mixedcase () 1 % glob /tmp/MiXeDcAsE /tmp/MiXeDcAsE () 1 % glob /tmp/m* no files matched glob pattern "/tmp/m*" () 1 % glob /tmp/M* /tmp/MiXeDcAsE % tclsh9.1 % info pa 9.1a1 % glob /tmp/MIXEDCASE /tmp/MIXEDCASE ```
- foundin changed to: "9.0"
- is_private changed to: "0"
- login: "apnadkarni"
- priority changed to: "5 Medium"
- private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "apnadkarni"
- subsystem changed to: "- New Builtin Commands"
- title changed to: "glob inconsistencies on macos"
- type changed to: "Bug"