On Wed, Aug 25, 2021, at 5:18 AM, Dietmar Schindler wrote: > > sent: 25. August 2021 02:14 > > from: "Lawrence Velázquez" > > Cc: bug-bash@gnu.org > > On Tue, Aug 24, 2021, at 4:44 PM, Dietmar P. Schindler wrote: > > > Doesn't the example I gave above show that quotes are removed? If they > > > weren't, how could word aa with pattern a""a constitute a match? > > > > The quotes are handled by the matching process itself, *not* as > > part of the usual shell expansions. … > > I didn't say that quotes were handled "as part of the usual shell > expansions" (on the contrary, in my original message I wrote "this > expansion series ["Shell Expansions" performed on the command line] is > not performed on the case command's _word_ and patterns"), so I'm sorry > I don't get why you are emphasizing this.
The nub (which I unwisely left implicit) was that the quotes are handled differently from usual, making it misleading at best to say, unqualified, that quote removal occurs before the matching happens. At a minimum you'd need to elaborate on the special sauce that Chet described. -- vq