There is interesting comparison of implementation in different shells (csh, tcsh, bash, dash...) in different application or different libraries (glibc, BSD libc, MacOS) Glob Matching Can Be Simple And Fast Too https://research.swtch.com/glob I am not the author of tests. Miroslav Lachman