Re: [PATCH] doc: Document another pitfall of shell pattern matching

Bruno Haible via Patches for autoconf - the GNU build system <[email protected]> Tue, 06 May 2025 15:03:09 +0200
Newsgroups gmane.comp.sysutils.autoconf.patches
Organization GNU
Message-ID <7280844.dE46n4Xy2H@nimes>
Paul Eggert wrote:
> Thanks, I installed that, along with the attached followup which 
> documents some other globbing pitfalls.

Thanks. That's much more complete!

> By the way, brace expansion is not part of globbing: it's a prepass over 
> the shell command and it operates independently of file names. Brace 
> expansion does not work when doing pattern matching in 'case' 
> statements, for example. So I adjusted the example to not imply that 
> brace expansion cares whether files exist.

Oh. That was another wrong understanding of how the shell language works,
on my side. Thanks for correcting me.

Bruno