Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4ee6c1cb263d3d489c9793102a6776dc6cf5a456c35442e6936298b80cab9166
Ticket: e6ca0b1b678f89f0cd6228d9a84604f5a950637a
glob inconsistencies on macos
User & Date: jmroot on 2026-04-19 07:32:23
Changes

  1. closedate changed to: "2461149.8141619675"
  2. closer changed to: "jmroot"
  3. icomment:
    As a macOS user, I think the only way to make `glob` do what the caller wants all the time is to add an explicit `-nocase` option like `string match` has. Case-sensitive matching is what globs in the shell do (even on a case-insensitive FS):
    
    % touch f1 f2 f2 Fa Fb Fc
    % ls F*
    Fa Fb Fc
    % ls f*         
    f1 f2 f3
    
    Not being able to match in that way without extra post-processing would be a definite step backwards.
    
    IMO, the behaviour when there is a file called `MixedCase` should be:
    glob M* -> MixedCase
    glob m* -> 
    glob -nocase m* -> MixedCase
    glob MIXEDCASE ->
    glob -nocase  MIXEDCASE -> MixedCase
    
    HFS+ and APFS come in two flavours, case-sensitive and case-insensitive but case-preserving. Having your main filesystem formatted as case-sensitive is much less common but certainly not unheard of. In both flavours, filenames on disk have a specific case, and I definitely agree that `file normalize` should return that.
    
  4. login: "jmroot"
  5. mimetype: "text/plain"