Page MenuHomeSolus

grep update to 3.11
ClosedPublic

Authored by mazirah on Jun 1 2023, 10:58 AM.
Tags
None
Referenced Files
F11024562: D14159.diff
Tue, Aug 8, 10:18 PM
F11006878: D14159.diff
Tue, Aug 1, 5:28 PM
F10960381: D14159.diff
Tue, Jul 18, 11:09 AM
F10936058: D14159.id34590.diff
Thu, Jul 13, 12:50 AM
F10866682: D14159.id34590.diff
Jun 17 2023, 4:45 PM
F10866680: D14159.id34515.diff
Jun 17 2023, 4:45 PM
F10866679: D14159.id.diff
Jun 17 2023, 4:45 PM
F10862179: D14159.diff
Jun 16 2023, 7:29 PM
Subscribers

Details

Summary
  • Noteworthy changes in release 3.11 (2023-05-13) [stable]
  • Bug fixes

    With -P, patterns like [\d] now work again. Fixing this has caused grep to revert to the behavior of grep 3.8, in that patterns like \w and \b go back to using ASCII rather than Unicode interpretations. However, future versions of GNU grep and/or PCRE2 are likely to fix this and change the behavior of \w and \b back to Unicode again, without breaking [\d] as 3.10 did. [bug introduced in grep 3.10]

    grep no longer fails on files dated after the year 2038, when running on 32-bit x86 and ARM hosts using glibc 2.34+. [bug introduced in grep 3.9]

    grep -P no longer fails to match patterns using negated classes like \D or \W when linked with PCRE2 10.34 or newer. [bug introduced in grep 3.8]
  • Changes in behavior

    grep --version now prints a line describing the version of PCRE2 it uses. For example, it prints this when built with the very latest from git: grep -P uses PCRE2 10.43-DEV 2023-04-14 or this with what's currently available in Fedora 37: grep -P uses PCRE2 10.40 2022-04-14

    previous versions of grep wouldn't respect the user provided settings for PCRE_CFLAGS and PCRE_LIBS when building if a libpcre2-8 pkg-config module was found.

    Previous changes:
Test Plan
$ grep --no-ignore-case defaults $HOME/.profile
source /usr/share/defaults/etc/profile
$ grep --no-ignore-case Defaults $HOME/.profile

Diff Detail

Repository
R1060 grep
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 5134
Build 5134: arc lint + arc unit

Event Timeline

silke requested changes to this revision.Jun 7 2023, 9:26 PM
silke added a subscriber: silke.

Thanks! Can you update the summary with release notes for grep 3.9 and 3.10?

Feel free to link to them instead of including the release notes verbatim, like you did here.

This revision now requires changes to proceed.Jun 7 2023, 9:26 PM
mazirah edited the summary of this revision. (Show Details)
This revision was not accepted when it landed; it landed in state Needs Revision.Jun 10 2023, 9:03 PM
Closed by commit R1060:7da23890cea0: grep update to 3.11 (authored by mazirah, committed by joebonrichie). · Explain Why
This revision was automatically updated to reflect the committed changes.