Page MenuHomeSolus

Update grep to 3.4
ClosedPublic

Authored by kyrios123 on Jan 3 2020, 4:50 PM.

Details

Summary

New features

  • The new --no-ignore-case option causes grep to observe case distinctions, overriding any previous -i (--ignore-case) option.

Bug fixes

  • '.' no longer matches some invalid byte sequences in UTF-8 locales.
  • grep -Fw can no longer false match in non-UTF-8 multibyte locales
  • For example, this command would erroneously print its input line: echo ab | LC_CTYPE=ja_JP.eucjp grep -Fw b
  • The exit status of grep -L is no longer incorrect when standard output is /dev/null.
  • A performance bug has been fixed when grep is given many patterns, each with no back-reference.
  • A performance bug has been fixed for patterns like '01.2' that cause grep to reorder tokens internally.

Signed-off-by: Pierre-Yves <pyu@riseup.net>

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

kyrios123 created this revision.Jan 3 2020, 4:50 PM
kyrios123 requested review of this revision.Jan 3 2020, 4:50 PM
kyrios123 edited the summary of this revision. (Show Details)Jan 3 2020, 4:51 PM
JoshStrobl accepted this revision.Jan 3 2020, 9:35 PM
JoshStrobl added a subscriber: JoshStrobl.

LGTM, thanks!

This revision is now accepted and ready to land.Jan 3 2020, 9:35 PM
This revision was automatically updated to reflect the committed changes.