summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* version 3.10v3.10Jim Meyering2023-03-221-1/+1
| | | | * NEWS: Record release date.
* doc: avoid capital sharp S with TeXPaul Eggert2023-03-221-1/+7
| | | | | | Do not use “ẞ” (U+1E9E, LATIN CAPITAL LETTER SHARP S) in tex, as texinfo version 2023-03-04.12 complains “Character missing, sorry: LONG S.”
* build: update gnulib to latestJim Meyering2023-03-221-0/+0
|
* build: update gnulib to latestJim Meyering2023-03-201-0/+0
|
* doc: clarify BRE vs ERE (bug#62272)Paul Eggert2023-03-202-11/+13
|
* grep: -P (--perl-regexp) \D once again works like [^0-9]Jim Meyering2023-03-194-18/+51
| | | | | | | | | | | * NEWS: Mention \D, too. * doc/grep.texi: Likewise * src/pcresearch.c (pcre_pattern_expand_backslash_d): Handle \D. Also, ifdef-out this new function and its call site when not needed. * tests/pcre-ascii-digits: Test \D, too. Tighten one test by using returns_ 1. Add comments and tests that work only with 10.43 and newer. Paul Eggert raised the issue of \D in https://bugs.gnu.org/62267#8
* grep: forward port to PCRE2 10.43Paul Eggert2023-03-193-91/+99
| | | | | | | | | | | * doc/grep.texi: Document this. * src/grep.c: Move recent changes into pcresearch.c. (P_MATCHER_INDEX): Remove. (pcre_pattern_expand_backslash_d): Move from here ... * src/pcresearch.c: ... to here. (PCRE2_EXTRA_ASCII_BSD): Default to 0. (Pcompile): Use PCRE2_EXTRA_ASCII_BSD if available, and expand \d to [0-9] otherwise.
* doc: distinguish Perl from PCREPaul Eggert2023-03-191-0/+6
| | | | * doc/grep.texi: Mention that PCRE might not match Perl exactly.
* grep: -P (--perl-regexp) \d: match only ASCII digitsJim Meyering2023-03-185-1/+154
| | | | | | | | | | | | | | | | Prior to grep-3.9, the PCRE matcher had always treated \d just like [0-9]. grep-3.9's fix for \w and \b mistakenly relaxed \d to also match multibyte digits. * src/grep.c (P_MATCHER_INDEX): Define enum. (pcre_pattern_expand_backslash_d): New function. (main): Call it for -P. * NEWS (Bug fixes): Mention it. * doc/grep.texi: Document it: with -P, \d matches only ASCII digits. Provide a PCRE documentation URL and an example of how to use (?s) with -z. * tests/pcre-ascii-digits: New test. * tests/Makefile.am (TESTS): Add that file name. Reported as https://bugs.gnu.org/62267
* build: update gnulib to latestJim Meyering2023-03-181-0/+0
|
* doc: remove mention of unused _N_GNU_nonoption_argv_flags_ envvarJim Meyering2023-03-093-37/+1
| | | | | | | | | * doc/grep.texi (Environment Variables): This environment variable has not been usable for decades. Remove its documentation. * doc/grep.in.1: Likewise. Reported by Emanuele Torre torreemanuele6@gmail.com in https://bugs.gnu.org/62052 * THANKS.in: Add the name.
* maint: post-release administriviaJim Meyering2023-03-053-2/+5
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.9v3.9Jim Meyering2023-03-051-1/+1
| | | | * NEWS: Record release date.
* build: update gnulib to latestJim Meyering2023-03-051-0/+0
|
* tests: avoid failure on Alpine Linux 3.17, due to non-POSIX compliant trBruno Haible2023-03-051-4/+4
| | | | | * tests/fmbtest: Don't use [x*n] syntax in the tr options, since tr from BusyBox 1.35 does not support it.
* build: update gnulib to latestJim Meyering2023-02-261-0/+0
|
* build: avoid --enable-gcc-warnings clang-vs-sprintf build failureJim Meyering2023-02-191-0/+1
| | | | | * configure.ac (WERROR_CFLAGS): Disable -Wdeprecated-declarations to accommodate Apple's clang 14 that's installed as "gcc".
* maint: remove stray characterJim Meyering2023-02-041-1/+1
| | | | * HACKING: Remove a stray "[" alone on a line.
* maint: prefer https: to git:Jim Meyering2023-02-044-5/+5
| | | | | | | | | | | | | | | | | | | | The idea is to defend against some adversary-in-the-middle attacks. Also prefer git.savannah.gnu.org over its shorter alias, git.sv.gnu.org to avoid a warning e.g., from git clone. Also, drop any final ".git" suffix on the resulting URIs. Inspired by Paul Eggert's nearly identical changes to coreutils. Induced by running these commands: git grep -l 'git clone git:'|xargs perl -pi -e \ 's{(git clone) git://(\S+)/([^/]+)\b}{$1 https://$2/git/$3}' git grep -l git.sv.gn \ |xargs perl -pi -e 's{git\.sv\.gnu}{git\.savannah\.gnu}' perl -pi -e \ 's{(url =) git://(\S+)/([^/.]+)(\.git)?\b}{$1 https://$2/git/$3}'\ .gitmodules * .gitmodules: As above. * HACKING: Likewise. * README-hacking: Likewise. * src/grep.c (main): Likewise.
* Don't require 'rsync' as a prerequisite. It is no longer needed since 2018.Bruno Haible2023-01-302-2/+0
| | | | | * bootstrap.conf (buildreq): Remove rsync. * README-prereq: Likewise.
* build: update gnulib submodule to latestPaul Eggert2023-01-221-0/+0
|
* maint: stop including getprogname.hPaul Eggert2023-01-212-3/+0
| | | | | | It’s obsolete in bleeding-edge Gnulib. * src/grep.c, tests/get-mb-cur-max.c: Don’t include getprogname.h. Instead, rely on stdlib.h to declare getprogname.
* build: update gnulib submodule to latestPaul Eggert2023-01-211-0/+0
|
* build: update gnulib submodule to latestPaul Eggert2023-01-181-0/+0
|
* maint: spelling fixesPaul Eggert2023-01-163-3/+4
|
* tests: fix test -eq problemPaul Eggert2023-01-151-1/+1
| | | | | Do not use ‘test "" -eq 1’ when get-mb-cur-max fails, as Bash complains about this. Problem found on AIX.
* build: update gnulib submodule to latestPaul Eggert2023-01-151-0/+0
|
* tests: port U+10000+ to AIX 7.2Paul Eggert2023-01-152-4/+18
| | | | | | | * tests/hangul-syllable, tests/surrogate-search: 32-bit AIX has WCHAR_MAX == 0xFFFF, and so cannot handle U+10000 and greater. Skip tests involving such chars on this platform.
* tests: update tests/init.shPaul Eggert2023-01-151-4/+5
| | | | * tests/init.sh: Update from Gnulib.
* grep: fix rawmemrchr etc. commentsPaul Eggert2023-01-151-2/+2
| | | | * src/grep.c: Fix comments.
* tests: omit duplicate testsPaul Eggert2023-01-141-6/+4
| | | | | * tests/skip-read: Omit duplicates. Reported by Bruno Haible in: https://lists.gnu.org/r/grep-devel/2023-01/msg00003.html
* build: update gnulib submodule to latestPaul Eggert2023-01-141-0/+0
|
* tests: better diagnostic for -P sans UnicodePaul Eggert2023-01-121-4/+12
| | | | | | * tests/init.cfg (require_pcre_): When in a UTF-8 locale, test also for Unicode support so that it can be diagnosed differently (Bug#60708).
* grep: diagnose no UTF-8 support (Bug#60708)Paul Eggert2023-01-121-3/+5
| | | | | * src/pcresearch.c (Pcompile): Issue a diagnostic and exit instead of misbehaving if libpcre2 does not support the requested locale.
* pcre: use UTF only when available in the libraryCarlo Marcelo Arenas Belón2023-01-113-3/+8
| | | | | | | | | | | Before this change, if linked with a PCRE library without unicode any invocations of grep when using a UTF locale will error with: grep: this version of PCRE2 does not have Unicode support * src/pcresearch.c: Check whether Unicode was compiled in. * tests/pcre-utf8-w: Add check to skip test. * tests/pcre-utf8: Update check.
* pcre: use UCP in UTF modeCarlo Marcelo Arenas Belón2023-01-075-1/+38
| | | | | | | | | | | | | This fixes a serious bug affecting word-boundary and word-constituent regular expressions when the desired match involves non-ASCII UTF8 characters. * src/pcresearch.c: Set PCRE2_UCP together with PCRE2_UTF * tests/pcre-utf8-w: New file. * tests/Makefile.am (TESTS): Add it. * NEWS (Bug fixes): Mention this. * THANKS.in: Add Gro-Tsen and Karl Petterson. Reported by Gro-Tsen https://twitter.com/gro_tsen/status/1610972356972875777 via Karl Pettersson in https://github.com/PCRE2Project/pcre2/issues/185 This bug was present from grep-2.5, when --perl-regexp (-P) support was added.
* maint: update copyright datesJim Meyering2023-01-01121-121/+122
|
* build: update gnulib to latestJim Meyering2023-01-011-0/+0
|
* maint: avoid warnings about unportable grep -qJim Meyering2023-01-011-2/+3
| | | | | | * cfg.mk (local-checks-to-skip): This is grep itself, so using grep -q is not a problem here, as long as it is running the just-built grep.
* maint: src/dfasearch.c: remove unnecessary re_set_syntax callJim Meyering2022-12-101-2/+0
| | | | | * src/dfasearch.c (GEAcompile): Don't call "re_set_syntax (syntax_bits)" just before regex_compile; that function does the same thing already.
* grep: bug: backref in last of multiple patternsPaul Eggert2022-12-053-13/+26
| | | | | | | | * NEWS: Mention this. * src/dfasearch.c (GEAcompile): Trim trailing newline from the last pattern, even if it has back-references and follows a pattern that lacks back-references. * tests/backref: Add test for this bug.
* maint: prefer stdckdint.h to intprops.hPaul Eggert2022-10-114-6/+10
| | | | | | | | Prefer the standard C23 ckd_* macros to Gnulib’s *_WRAPV macros. * bootstrap.conf (gnulib_modules): Add stdckdint. * src/grep.c, src/kwset.c, src/pcresearch.c: Include stdckdint.h, and prefer ckd_* to *_WRAPV. Include intprops.h only if needed.
* maint: add missing includePaul Eggert2022-10-111-0/+2
| | | | * src/pcresearch.c: Include intprops.h.
* maint: prefer C23 style for static_assertPaul Eggert2022-10-112-1/+2
| | | | | | * bootstrap.conf (gnulib_modules): Add assert-h, for static_assert. * src/dfasearch.c (regex_compile): Prefer static_assert to verify.
* build: update gnulib submodule to latestPaul Eggert2022-10-111-0/+0
|
* Assume C23-like boolPaul Eggert2022-09-103-3/+0
| | | | | | Gnulib’s stdbool module now provides C23-like semantics, so there’s no longer any need to include stdbool.h. * src/die.h, src/grep.h, src/kwset.h: Don’t include stdbool.h.
* build: update gnulib submodule to latestPaul Eggert2022-09-101-0/+0
|
* doc: improve GREP_COLORS doc (Bug#57696)Paul Eggert2022-09-092-4/+4
|
* Fix obsolescence doc for egrep, fgrepPaul Eggert2022-09-061-3/+3
|
* maint: post-release administriviaJim Meyering2022-09-023-2/+5
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.