On 11/28/18 1:52 PM, Dmitry Boyarintsev wrote:
> Hello,
>
> I'm finding the following odd.
>
> Test cases:
> #83 braces_numeric_range4
> editorconfig.exe -f
braces.in <
http://braces.in>
> C:/test/editorconfig-test/glob/60
> number=true
>
> PASSED.
>
> #87 braces_numeric_range8
> editorconfig.exe -f
braces.in <
http://braces.in>
> C:/test/editorconfig-test/glob/060
> number=true
>
> FAILED.
>
> The file name should match the pattern:
> ; numeric braces
> [{3..120}]
> number=true
>
> But why? shouldn't integer comparison be applied?
> where 060 = 60 and falls into 3..120 range?
> or should it be character comparison only?
This is simply consistent with other major glob systems in shells, just
a rule that has already prevailed. Try `echo {3..120}` in bash, and you
won't see 060 in the list :)
Hong