Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7e8124a64a24fdda4192d78d9aed778f93b1012ffce89410823bfd1fa976c901
Ticket: e6ca0b1b678f89f0cd6228d9a84604f5a950637a
glob inconsistencies on macos
User & Date: apnadkarni on 2026-04-20 05:34:35
Changes

  1. closedate changed to: "2461150.7323515392"
  2. closer changed to: "apnadkarni"
  3. icomment:
    The `-nocase` need (or equivalent fix) is not unique to macos and is logged separately as [a5ba717243]. This branch did not address that. Besides fixing the inconsistency between globbing `m*` versus `mixedcase`, it only brings macos into consistency with other Tcl platforms where glob matching is on a per-platform basis, and is based on "general user expectations". Issues related to differing case-sensitivity in file systems are known to be broken functionality.
    
    Case-sensitivity in shells on case-insensitive file systems is broken in the other direction so I'm not sure that is a good example to follow.
    
    glob was never defined to return the on-disk name. If you need that, you have to normalize. The rationale that has been expressed is very often there is no need to incur the cost of that normalization, e.g. `foreach f [glob *.bak] {file delete $f}` or something like that.
    
    But I agree a more complete solution to the file system casing is required. Hence the aforementioned ticket.
    
  4. login: "apnadkarni"
  5. mimetype: "text/x-markdown"