grep-devel
[Top][All Lists]
Advanced

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

Re: [platform-testers] new snapshot available: grep-3.7.98-c9ac


From: Simon Josefsson
Subject: Re: [platform-testers] new snapshot available: grep-3.7.98-c9ac
Date: Thu, 07 Jul 2022 10:36:36 +0200
User-agent: Evolution 3.38.3-1

ons 2022-07-06 klockan 08:31 -0700 skrev Jim Meyering:
> On Wed, Jul 6, 2022 at 1:44 AM Simon Josefsson <simon@josefsson.org>
> wrote:
> > >   Regular expressions like [:space:] are now errors even if
> >                                              ^
> > >   POSIXLY_CORRECT is set, since POSIX now allows the GNU
> > > behavior.
> > 
> > Shouldn't that be 'not'?
> 
> GNU grep initially contravened POSIX in order to provide a diagnostic
> for this common error:
> 
>   $ grep '[:space:]'
>   grep: character class syntax is [[:space:]], not [:space:]
> 
> So back then (prior to this upcoming release), when in
> POSIXLY_CORRECT
> mode, it would accept the probably erroneous syntax and treat it like
> the set of six bytes ":aceps". Now that POSIX has been adjusted to
> allow GNU grep's rejection, we can make the rejection unconditional.

Thanks, sorry, I got the logic backwards, even after attempting to
think twice about it.

/Simon

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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