Just rewrote @musllibc's glob() this afternoon (commit coming soon) - long overdue, but a new bug report pushed it forward.
-
-
strace for something like a/*/b is down from a cascade of open/getdents to a single dir read and flat sequents of stat's. And stack usage is down from up to 4k*n_path_components to flat 4k+epsilon*n_nonliteral_path_components.
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Given /foo/bar/x and /foo/baz/x where foo is -r+x, would a glob of /foo/{bar,baz}/x work?
-
{bar,baz} is bashism, not glob. :-)
-
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 -
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.