<i>glob inconsistencies on macos</i> status still Closed with 5 other changes
by
.
D 2026-04-19T07:32:23.594
J closedate 2461149.8141619675
J closer jmroot
J icomment As\sa\smacOS\suser,\sI\sthink\sthe\sonly\sway\sto\smake\s`glob`\sdo\swhat\sthe\scaller\swants\sall\sthe\stime\sis\sto\sadd\san\sexplicit\s`-nocase`\soption\slike\s`string\smatch`\shas.\sCase-sensitive\smatching\sis\swhat\sglobs\sin\sthe\sshell\sdo\s(even\son\sa\scase-insensitive\sFS):\r\n\r\n%\stouch\sf1\sf2\sf2\sFa\sFb\sFc\r\n%\sls\sF*\r\nFa\sFb\sFc\r\n%\sls\sf*\s\s\s\s\s\s\s\s\s\r\nf1\sf2\sf3\r\n\r\nNot\sbeing\sable\sto\smatch\sin\sthat\sway\swithout\sextra\spost-processing\swould\sbe\sa\sdefinite\sstep\sbackwards.\r\n\r\nIMO,\sthe\sbehaviour\swhen\sthere\sis\sa\sfile\scalled\s`MixedCase`\sshould\sbe:\r\nglob\sM*\s->\sMixedCase\r\nglob\sm*\s->\s\r\nglob\s-nocase\sm*\s->\sMixedCase\r\nglob\sMIXEDCASE\s->\r\nglob\s-nocase\s\sMIXEDCASE\s->\sMixedCase\r\n\r\nHFS+\sand\sAPFS\scome\sin\stwo\sflavours,\scase-sensitive\sand\scase-insensitive\sbut\scase-preserving.\sHaving\syour\smain\sfilesystem\sformatted\sas\scase-sensitive\sis\smuch\sless\scommon\sbut\scertainly\snot\sunheard\sof.\sIn\sboth\sflavours,\sfilenames\son\sdisk\shave\sa\sspecific\scase,\sand\sI\sdefinitely\sagree\sthat\s`file\snormalize`\sshould\sreturn\sthat.
J login jmroot
J mimetype text/plain
K e6ca0b1b678f89f0cd6228d9a84604f5a950637a
U jmroot
Z 72179839a6eadc0e13126d9a67f28f2e