Tcl Source Code

View Ticket
Login
Ticket UUID: a5ba717243b058b21fc3b9c2f39ce012c0a4eb82
Title: glob should correctly handle case-sensitive paths on case-insensitive systems and vice versa
Type: RFE Created on: 2026-03-25 06:46:40
Submitter: apnadkarni Assigned to: nobody
Subsystem: 37. File System Severity: Minor
Priority: 5 Medium Last modified: 2026-03-25 06:46:40
Status: Open Closed by: nobody
Resolution: None Closed on:
Version:
Description:

As a follow-on to 108904173c...

The semantics of glob do case-insensitive matching on Windows even when the file system or directory are case-sensitive. Thus a pattern FOO will match even when FOO does not exist on the file system but foo does.

The reverse is also likely to be true (case-insensitive file system mounted on Unix).

Fixing may not be easy, particularly since case-insensitivity can be on a per-directory basis. Possibly documenting this corner case is all we can do.