Re:Zlob.h 100% POSIX and glibc compatible globbing lib that ...
by thayne on Saturday February 07, 2026 @03:09AM
(#46922192)
The behavior of bash would be to produce "a/c" and "b/c", even if both files don't exist
[ Parent
| on HN ]
Re:Zlob.h 100% POSIX and glibc compatible globbing lib that ...
by frizlab on Saturday February 07, 2026 @07:37AM
(#46923369)
zsh too
Re:Zlob.h 100% POSIX and glibc compatible globbing lib that ...
by sgbeal on Saturday February 07, 2026 @09:02AM
(#46923970)
> The behavior of bash would be to produce "a/c" and "b/c", even if both files don't exist
In bash patterns like {a,b} aren't glob-expansion expansions, they're string operations, and those resolve before glob expansions.
You can confirm this with: ls /{nope,tmp}