Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e5687cbbfe62cf20beb36fbbdba167b96eea8f988b3a1d73462f3f584def1ea2
Ticket: a382a311e098c19ae3abe371602eb84d7a1e00e6
glob on case insentitive sytems not respecting character class case
User & Date: apnadkarni on 2026-03-30 11:50:41
Changes

  1. icomment:
    I am not sure I agree that `glob [a-z]` should not match a file called `A` on case-insensitive systems. As I see it, the glob pattern represents a (potentially infinite) set of strings. The command then should return any file name that matches any of those strings using the case-sensitivity behaviour of the file system.
    
    Regarding performance, while debugging the related bugs, it appeared that traversal to build the internal representation is unnecessarily duplicated at times. I've still not fully grok'ed maintenance of the representation. The other possiblity is that Tcl builds up the internal representation of the file path which twapi does not do. While this is an additional cost in globbing (possibly wasted), it may speed up later operations such as normalization. I wonder how relative performance would look if you normalized the returned paths in both cases.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"