Just rewrote @musllibc's glob() this afternoon (commit coming soon) - long overdue, but a new bug report pushed it forward.
-
-
BTW one reason musl doesn't implement this GNU extension is that standard fnmatch/glob expressions admit constant-space linear-time matching but with the brace extension it's necessarily quadratic-time (assuming constant-space restriction).
-
Ah, I didn't notice in the man page that GLOB_BRACE is listed as non-standard.
End of conversation
New conversation -
-
-
GLOB_BRACE? (Man page says csh-ism.)
-
Yes, glibc/gnulib glob has it. Interestingly, their fnmatch doesn't, which is nice because it's more horrible for fnmatch which isn't allowed to allocate.https://twitter.com/RichFelker/status/1050861482953633792 …
-
(But their fnmatch is horrible and does allocate anyway; it converts the whole pattern and haystack to wchar_t[] temp buffers...)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.