| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* ChangeLog-2009: Fix spelling errors.
* bootstrap: Likewise.
* doc/grep.texi: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This follows up to Carlo Marcelo Arenas Belón’s email
<https://lists.gnu.org/r/grep-devel/2023-04/msg00017.html>
that proposed changing the code too. These patches change
only the documentation since we’re so near a release.
* NEWS: Be less optimistic about the fix for -P '\d',
and warn that behavior is likely to change again.
* doc/grep.texi (grep Programs): Be less specific about -P \d
behavior, since it’s still in flux. Warn about mismatching
Unicode versions, or disagreements about obscure constructs.
|
|
|
|
|
|
|
|
| |
* doc/grep.texi (Matching Control): Mention that when -f's FILE is -,
grep reads patterns from stdin.
* doc/grep.in.1: Likewise.
* THANKS.in: Add the name.
Suggested by Sebastian Carlos in https://bugs.gnu.org/63146
|
|
|
|
|
|
| |
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.”
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
| |
* 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/grep.texi: Mention that PCRE might not match Perl exactly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* doc/grep.texi (Special Backslash Expressions)
(Problematic Expressions): Document that grep supports
\] and \} as extensions to POSIX.
|
|
|
|
|
|
|
| |
* bootstrap.conf (gnulib_modules): Remove fdl.
* doc/.gitignore: Do not list fdl.texi
* doc/fdl.texi: New file.
* cfg.mk (FILTER_LONG_LINES): Add doc/fdl.texi.
|
| |
|
|
|
|
|
|
| |
This is to avoid confusion such as that reported by Cholden in:
https://bugs.gnu.org/55641
* src/grep.c (main): Warn if GREP_COLOR has an effect.
|
|
|
|
|
|
|
|
|
| |
* doc/grep.texi (Environment Variables)
(Fundamental Structure, Character Classes and Bracket Expressions)
(Special Backslash Expressions, Back-references and Subexpressions)
(Basic vs Extended): Say more precisely what happens with
problematic regular expressions.
(Problematic Expressions): New section.
|
|
|
|
|
|
|
|
|
| |
* doc/grep.texi (Environment Variables)
(Fundamental Structure, Character Classes and Bracket Expressions)
(The Backslash Character and Special Expressions)
(Back-references and Subexpressions, Basic vs Extended)
(Basic vs Extended): Say more precisely what happens with oddball
regular expressions.
|
|
|
|
|
|
|
| |
* src/dfasearch.c (dfawarn): Always call dfaerror now,
regardless of POSIXLY_CORRECT.
* tests/warn-char-classes: Omit test of POSIX.1-2008 behavior,
since POSIX.1-2017 allows the GNU behavior.
|
|
|
|
|
| |
The obsolete -y option has been omitted from --help for a while, and
now’s a good time to omit it from the man page too.
|
|
|
|
|
|
| |
* doc/grep.in.1, doc/grep.texi: Document behavior of -m 0 and -m -1.
This documents longstanding behavior, and is consistent with
how git grep -m will likely behave.
|
| |
|
|
|
|
| |
* doc/grep.texi (Usage): Expand on leading ‘-’ problems (Bug#54174).
|
|
|
|
| |
* doc/grep.texi (Usage, Performance): Mention early exits (Bug#54035).
|
|
|
|
|
|
| |
* doc/grep.in.1: Fix syntax errors.
Introduced by commit v3.6-5-g91ce9cd.
Copyright-paperwork-exempt: Yes
|
| |
|
|
|
|
| |
* doc/grep.in.1 (--count): s/below/above/.
|
|
|
|
| |
Suggested by Duncan Roe (Bug#51860#25).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mostly a bug by bug translation of the original code to the PCRE2 API.
Code still could do with some optimizations but should be good as a
starting point.
The API changes the sign of some types and therefore some ugly casts
were needed, some of the changes are just to make sure all variables
fit into the newer types better.
Includes backward compatibility and could be made to build all the way
to 10.00, but assumes a recent enough version and has been tested with
10.23 (from CentOS 7, the oldest).
Performance seems equivalent, and it also seems functionally complete.
* m4/pcre.m4 (gl_FUNC_PCRE): Check for PCRE2, not the original PCRE.
* src/pcresearch.c (struct pcre_comp, jit_exec)
(Pcompile, Pexecute):
Use PCRE2, not the original PCRE.
* tests/filename-lineno.pl: Adjust to match PCRE2 diagnostics.
|
|
|
|
|
| |
* doc/grep.texi (Basic vs Extended, Performance):
Document limitations of interval expressions (Bug#44538).
|
|
|
|
|
|
|
|
| |
* doc/grep.texi (General Output Control, Basic vs Extended):
No need to complicate the portability advice by talking about 7th
edition grep, since it’s no longer a practical porting target.
Instead, mention only Solaris 10 grep, the last practical holdout
of somewhat-traditional grep.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* NEWS: Mention this (see bug#49996).
* doc/Makefile.am (egrep.1 fgrep.1): Remove. All uses removed.
* doc/grep.in.1, doc/grep.texi (grep Programs):
Remove documentation for egrep, fgrep.
* doc/grep.texi (Usage): Add FAQ for egrep and fgrep.
* src/Makefile.am (shell_does_substrings): Substitute for ${0##*/},
not for ${0%/\*} (which was not being used anyway).
* src/egrep.sh: Issue an obsolescence warning.
* tests/fedora: Use "grep -F" instead of "fgrep" in diagnostics,
as this tests "grep -F" not "fgrep".
|
| |
|
|
|
|
|
|
| |
* doc/grep.in.1:
Add copy of docs for --group-separator from doc/grep.texi.
Add copy of docs for --no-group-separator from doc/grep.texi.
|
|
|
|
| |
* doc/grep.in.1 (-H): Mention that this is a GNU extension.
|
|
|
|
|
| |
* doc/grep.texi (The Backslash Character and Special Expressions)
(Usage): Improve doc (Bug#48948).
|
|
|
|
|
|
|
|
|
|
| |
* doc/grep.texi (-L): Remove erroneous sentence about stopping early.
With -L, grep cannot stop scanning early.
(-l): Tweak existing wording.
* doc/grep.in.1: Remove the -L sentence here, too.
(-l): Copy the sentence from grep.texi, to clarify: it's only per-file
scanning that stops upon match. Reported by Robert Bruntz
in http://debbugs.gnu.org/46179
|
|
|
|
|
|
| |
* doc/grep.texi (Fundamental Structure)
(Back-references and Subexpressions, Basic vs Extended):
Further clarifications.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* doc/grep.texi (Fundamental Structure)
(Character Classes and Bracket Expressions)
(The Backslash Character and Special Expressions, Anchoring)
(Basic vs Extended): Clarify which characters are special,
and why \ is needed before } in grep even though } is not special.
Use Posix terminology for ordinary and special characters and for
interval expressions.
|
|
|
|
|
|
| |
* doc/grep.texi (Basic vs Extended Regular Expressions): Mention that
the right curly brace (}) meta-character must be backslash-escaped.
It had been omitted from the list.
|
|
|
|
|
|
|
| |
* NEWS (Change in behavior): Mention this.
* src/grep.c (main): Warn about each use of obsolete
--unix-byte-offsets (-u).
* doc/grep.in.1 (-u): Remove its documentation.
|
|
|
|
|
|
|
|
| |
* doc/grep.in.1: Mark some manual names with B<...>.
Mark PATTERNS with I<...>.
Drop final period in SEE ALSO.
With suggestions from of several members of the manpage-l10n
translation community. This resolves https://bugs.gnu.org/45353
|
|
|
|
|
|
|
|
|
|
|
|
| |
* NEWS: Mention this.
* doc/grep.in.1:
Remove GREP_OPTIONS documentation.
* doc/grep.texi (Environment Variables):
Move GREP_OPTIONS stuff into a “no longer implemented” paragraph.
* src/grep.c (prepend_args, prepend_default_options): Remove.
(main): Do not look at GREP_OPTIONS.
* tests/Makefile.am (TESTS_ENVIRONMENTS):
* tests/init.cfg (vars_): Remove GREP_OPTIONS.
|
|
|
|
|
|
|
|
| |
Problem reported by John Ruckstuhl (Bug#43782).
* doc/grep.texi (File and Directory Selection):
Document what happens if contradictory options are given,
or if no option matches a file name.
* doc/grep.in.1:
|
|
|
|
|
|
| |
* doc/grep.texi (Other Options): Document --line-buffered more
carefully, and say what happens when it is not used. Problem
reported by Dan Jacobson (Bug#35339).
|
|
|
|
|
|
|
| |
From a suggestion in Bug#41004.
* doc/grep.texi (Character Encoding, Matching Non-ASCII):
New sections. Move some material from Environment Variables
into these sections.
|