[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] doc: Document another pitfall of shell pattern matching
From: |
Bruno Haible |
Subject: |
Re: [PATCH] doc: Document another pitfall of shell pattern matching |
Date: |
Tue, 06 May 2025 15:03:09 +0200 |
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