bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defect in manual section "Conditional Constructs" / case


From: Lawrence Velázquez
Subject: Re: Defect in manual section "Conditional Constructs" / case
Date: Wed, 25 Aug 2021 13:45:58 -0400
User-agent: Cyrus-JMAP/3.5.0-alpha0-1125-g685cec594c-fm-20210825.001-g685cec59

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]