: <i>glob and file normalize inconsistencies on case insensitive filesystem</i> plus 6 other changes
by
.
D 2026-03-16T10:43:34.517
J closedate 2461115.9469272802
J closer sebres
J icomment As\salready\ssaid\sin\schat,\sit\sworks\sexactly\sas\sexpected.\r\n\r\nThe\sFS\son\swindows\sis\scase-insensitive...<br/>\r\nThe\suniqueness\sis\sif\s$path\sis\sequal\s$path\sand\sonly\s$path...<br/>\r\nUsing\scase-insensitive\scomparison\soperations\s(e.\sg.\s[string\sequal\s-nocase])\sthis\sequality\shas\sbeen\sproven.\r\n\r\nThe\s"anomaly\swith\sthe\scurly\sbrace\sglob\smechanism"\sfrom\syour\scomment\sis\salso\snot\sthe\sanomaly,\sif\sone\sconsider\sthat\sthe\suniqueness\sis\sgiven\sonly\sin\sa\scase-insensitive\sway\s(-nocase).\sThe\svalues\sare\sdifferent,\sbecause\swindows\sAPI\sfor\sglob\scannot\shandle\scurly\sbraces\sdirectly,\sso\sit\shappens\son\stcl-side,\sand\ssince\sthe\sfile\sexists,\sthe\sreturn\svalue\sis\sdifferent.\sThe\spicture\swould\schange\sagain,\sif\syou\swould\stry\sit\swith\sa\swildcard\slike\s{SDX{1,2}.*},\sbecause\sthen\sit'd\stry\scurly\sbraces\sagainst\sthe\slisting\sfrom\siterating\sAPI\scalls.\r\n\r\nJust\snote\sthat\sbecause\suniqueness\sis\sguaranteed\s(in\scase-insensetive\smanner)\sand\siterating\sAPI\scalls\sare\stime-expensive\sand\scostly,\sglob\swould\savoid\siterations\sunless\snecessary.\r\n\r\nThe\snormalization\shas\salso\snothing\sto\sdo\swith\sthe\scase-sensitivity...<br/>\r\nIt\sis\sabout\sresolving\sof\s".."\ssegments,\srelative\sor\svolume-relative\spaths,\slinks,\swrapping\sbackslash\sto\sslash,\setc...\snothing\selse.\r\n\r\nRegarding\sWSL,\sit\salso\sworks\sas\sexpected,\sbecause\sthe\scase-sensitivity\sof\smount\sis\sdifferent\sto\scase-sensitivity\sof\sorigin\sfile\ssystem.<br/>\r\nTherefore\sthe\sexact\sglob\sfor\s{SDX1.bat}\sfind\sthe\sfile,\sbut\sfor\s{[S]DX1.bat}\sor\ssome\swildcard\sthe\sglob\smust\siterate\sover\sdirectory\slisting\sreturned\sfrom\sFS,\sand\sin\scase-sensitive\smount\spoint\sthe\sfile\ssimply\sdoesn't\sexist,\sbecause\sit\sis\s"sdx1.bat".\r\nThe\sissue\sof\s"anomaly"\sis\stherefore\s\r\n\r\n\r\nPlease\salso\sconsider\shttps://learn.microsoft.com/en-us/windows/wsl/case-sensitivity\r\n\r\nI'll\sclose\sthis\sas\sincorrect,\ssorry.
J login sebres
J mimetype text/x-fossil-wiki
J resolution Invalid
J status Closed
K 108904173c1a823a20823885c7b29ab536434a5a
U sebres
Z 17d8d05fc22ec9d80395c6765fd6d40d