Overview
| Artifact ID: | 4ee6c1cb263d3d489c9793102a6776dc6cf5a456c35442e6936298b80cab9166 |
|---|---|
| Ticket: | e6ca0b1b678f89f0cd6228d9a84604f5a950637a
glob inconsistencies on macos |
| User & Date: | jmroot on 2026-04-19 07:32:23 |
Changes
- closedate changed to: "2461149.8141619675"
- closer changed to: "jmroot"
- 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.
- login: "jmroot"
- mimetype: "text/plain"