grep:master

Last commit made on 2024-02-19
Get this branch:
git clone -b master https://git.launchpad.net/grep

Branch merges

Branch information

Name:
master
Repository:
lp:grep

Recent commits

b4dd3b0... by Jim Meyering <email address hidden>

build: update gnulib to latest

3d900da... by Jim Meyering <email address hidden>

maint: avoid syntax-check failure: use <>, not "" for system headers

* src/dfasearch.c: As above.
* src/grep.c: Likewise.
* src/kwsearch.c: Likewise.
* src/pcresearch.c: Likewise.
* src/searchutils.c: Likewise.

b9a8047... by Paul Eggert

grep: fix ‘grep -m2 pattern <file >/dev/null’

Problem reported by Grisha Levit <https://bugs.gnu.org/68989>.
* src/grep.c (grep, main): Don’t set done_on_match if -m is used.
* tests/max-count-overread: Add a test case.

443961a... by Paul Eggert

Improve doc for range expressions

grep currently doesn’t implement rational ranges or any other
particular behavior for range expressions outside the C locale.
Adjust the documentation to match the behavior more closely.
Problem reported by Ronan Pigott in:
https://lists.gnu.org/r/grep-devel/2024-01/msg00000.html
* doc/grep.texi (Character Classes and Bracket Expressions):
Be more careful about terminology. Don’t say “sorts” because
the collation sequence is not the same as the sort order.
Don’t make promises about behavior outside the C locale,
as the current code might not fulfill them.
* doc/grep.in.1: Adjust wording to match. The old wording
was out-of-sync anyway.

e248db7... by Jim Meyering <email address hidden>

maint: update all copyright dates via "make update-copyright"

4810ea0... by Jim Meyering <email address hidden>

build: update gnulib to latest; also update bootstrap and init.sh

102be2b... by Paul Eggert

grep: prefer nullptr to NULL

* bootstrap.conf (gnulib_modules): Add nullptr.
All uses of NULL eliminated or changed to nullptr,
modernizing us from C89 to C23.

dd8f049... by Paul Eggert

grep: simplify wordchars_count

* src/searchutils.c (wordchars_count): Simplify slightly
by using a pointer rather than an offset.

554e5b2... by Paul Eggert

grep: use mbszero

* bootstrap.conf (gnulib_modules): Add mbszero.
* src/grep.c (buf_has_encoding_errors, contains_encoding_error)
(setup_ok_fold, fgrep_icase_available, fgrep_to_grep_pattern)
(try_fgrep_pattern):
* src/searchutils.c (mb_goback, wordchars_count):
Use it.

0522826... by Paul Eggert

maint: wchar-single, no strtou*

* bootstrap.conf (gnulib_modules): Remove strtoull, strtoumax.
They are no longer used. Use wchar-single instead of wchar,
since grep does not change locale.