[Top][All Lists]

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

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

From: Jim Meyering
Subject: Re: [platform-testers] new snapshot available: grep-3.7.98-c9ac
Date: Wed, 6 Jul 2022 08:31:13 -0700

On Wed, Jul 6, 2022 at 1:44 AM Simon Josefsson <> 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.

reply via email to

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