| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
* doc/grep.in.1: Reword documentation of character classes.
|
|
|
|
|
|
| |
* doc/grep.texi (Character classes): Mention explicitly when
examples refer to the C locale, explain better the general
meaning of character classes.
|
|
|
|
|
| |
* doc/grep.texi (Other Options) [--mmap]: This option is now
ignored, so using it can have no effect on performance.
|
|
|
|
|
|
| |
* bootstrap: Update from gnulib.
* tests/init.sh: Likewise.
* gnulib: Update to latest.
|
|
|
|
|
| |
* doc/grep.in.1: Remove item describing bogus {,m} regex notation.
Reported by Fernando Basso.
|
|
|
|
| |
Run "make update-copyright", so "make syntax-check" works in 2011.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When I make a mistake like this:
grep '[:lower:]' ...
be it in a script or on the command line, I want to know about
it as soon as possible. I don't want grep to print a mere warning
that it is interpreting this suspicious and almost guaranteed-wrong
regular expression as a set of just 6 bytes. And I certainly don't
want grep to silently do the wrong thing, even if that would be
officially standards-conforming. It's obvious that I intended
[[:lower:]], and I want my error to be diagnosed in a way that is
most likely to get my attention. Thus, with this change, grep now
prints a diagnostic and exits with status 2 the moment it
encounters an offending [:char_class:] construct.
This changes the way grep works by default, rather than
putting this new behavior on an option. A new option
would seldom be used in scripts (not portable), and would
probably be used only rarely by those who need it the most.
This new functionality provides a valuable safety measure
and incurs truly negligible risk.
For strict POSIX compliance, set POSIXLY_CORRECT in
your environment. That disables this new feature.
Revert the changes from commit 2cd3bcea, "grep: add
--warnings={always,never,auto}.", and then do the following:
* src/dfasearch.c (dfawarn): Call getenv("POSIXLY_CORRECT") here;
Remove "warning: " from the diagnostic, now that it's more than
a warning, and exit with status 2.
* NEWS (New features): Describe the new semantics.
* tests/warn-char-classes: Adjust one test to accommodate this change.
* doc/grep.texi (Character Classes and Bracket Expressions): Document.
(Environment Variables): Cross-reference it.
Remove reference to obsolete getopt illegal vs. invalid difference.
Thanks to Paul Eggert for suggestions and an initial prod.
|
|
|
|
|
| |
* doc/grep.texi (The Backslash Character and Special Expressions):
Document \s and \S escapes.
|
|
|
|
|
| |
* doc/grep.texi (Usage): Discuss matching across lines.
(Character Classes and Bracket Expressions) <[:space:]>: refer to it.
|
|
|
|
|
|
|
| |
* COPYING: Remove empty line.
* README: Likewise.
* doc/fdl.texi: Likewise.
* tests/backref-word: Likewise.
|
|
|
|
|
|
| |
* doc/Makefile.am (egrep.1 fgrep.1): The former has case consistent
with its sister variable, AM_V_GEN, but the latter is the one that
actually works.
|
|
|
|
|
|
|
|
| |
...to minimize risk of accidentally modifying the generated file
rather than its template. These are tiny, so no risk, but it's
a good to be consistent, so generated files are easier to spot.
* doc/Makefile.am (egrep.1 fgrep.1): When generating these files,
ensure that they too are created read-only.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/Makefile.am (grep.1): New rule.
(CLEANFILES): Add grep.1 to the list.
* .gitignore: Add /doc/grep.1
* doc/grep.in.1: Replace hard-coded "2.5.1-cvs" with @VERSION@.
Update copyright year list.
Omit the line-splitting \(co directive so that update-copyright
will perform future updates automatically.
Egmont Koblinger reported the outdated version string
and copyright year list in the man page:
http://savannah.gnu.org/bugs/?29390
|
|
|
|
|
| |
* doc/grep.1: Rename to...
* doc/grep.in.1: ...this.
|
|
|
|
|
|
|
|
|
| |
* doc/Makefile.am (egrep.1 fgrep.1): Generate robustly, i.e.,
do not redirect directly to $@.
Use $(AM_V_GEN).
Do not distribute intermediate files like fgrep.man and egrep.man.
Likewise, do not use them to generate their %.1 images.
Instead, generate the .1 files directly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mmap is a bad idea for sequentially accessed file because it will cause
a page fault for every read page. Just consider it a failed experiment,
and ignore --mmap while accepting it for backwards compatibility.
* configure.ac (AC_FUNC_MMAP): Remove.
* doc/grep.texi (Other options): Say --mmap is ignored.
* src/grep.c (mmap_option): Remove.
(long_options): Do not reference it.
(bufmapped, initial_bufoffset): Remove.
(reset, fillbuf): Remove HAVE_MMAP code.
(grepfile): Remove bufmapped reference.
(usage): Say --mmap is ignored.
|
|
|
|
|
|
|
| |
* doc/grep.1 (--label): Don't italicize ending period. Point to -H
option.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
| |
* doc/grep.1: Add a sentence about Perl regular expressions,
and point to pcresyntax(3) and pcrepattern(3).
* doc/grep.texi: Likewise.
|
|
|
|
|
|
|
|
|
|
|
| |
* src/grep.c (group_separator): New.
(long_options): Add --group-separator=FOO and --no-group-separator.
(prtext): Print group_separator instead of SEP_STR_GROUP. Optionally
suppress the separator altogether.
(main) Handle GROUP_SEPARATOR_OPTION.
* doc/grep.texi (Context control): Document it.
* NEWS: Mention it.
* tests/yesno.sh: Add testcases.
|
|
|
|
|
|
| |
Use this command:
git ls-files |grep -vE '^(\..*|COPYING|gnulib)$' |xargs \
env UPDATE_COPYRIGHT_USE_INTERVALS=1 build-aux/update-copyright
|
|
|
|
|
|
|
| |
Fixes bug 22681.
* doc/grep.1 (--label): Use -H in the example, improve wording.
* doc/grep.texi (Output Line Prefix Control): Likewise.
|
|
|
|
|
|
| |
* bootstrap.conf (gnulib_modules): Add announce-gen update-copyright
do-release-commit-and-tag git-version-gen gnu-web-doc-update
gnupload maintainer-makefile useless-if-before-free
|
|
|
|
|
|
| |
* doc/Makefile.am: Remove AUTOMAKE_OPTIONS.
* lib/posix/Makefile.am: Remove AUTOMAKE_OPTIONS.
* vms/Makefile.am: Remove AUTOMAKE_OPTIONS.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* doc/grep.texi (Exit Status, grep Programs): move these
nodes to under Invoking.
|
|
|
|
|
| |
* doc/grep.texi: remove all remaining node pointers;
downcase cindex entries.
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/grep.texi (Copying): update url's.
(GNU General Public License): remove node.
(GNU Free Documentation License): @include fdl.texi instead.
(@copying): update to v1.3 or later.
* doc/fdl.texi: new file, copied from
http://www.gnu.org/licenses/fdl.texi.
* doc/Makefile.am (grep_TEXINFOS): new variable to get fdl.texi.
Also add usual GPL license statement.
|
|
|
|
|
|
|
| |
* doc/grep.texi (Index): Merge in Concept Index node,
to have only one index. Arrange @syncodeindex's accordingly.
* doc/grep.texi (@copying): use @copying; move @contents to
beginning; rearrange other frontmatter in the conventional ways.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
should be uncommented after the 2.5.4 release.
* tests/yesno.sh: Likewise.
* doc/grep.1: Update description of -e PATTERN; from Benno Schulenberg
* doc/grep.texi: Likewise.
* tests/foad1.h: Comment out cases that are known to fail. These
* tests/yesno.sh: Likewise.
* doc/grep.1: Update description of -e PATTERN; from Benno Schulenberg
* doc/grep.texi: Likewise.
|
|
|
|
|
| |
* lib/savedir.c, lib/savedir.h, src/grep.c, doc/*:
Add --exclude-dir option (patch #5051)
|
| |
|
| |
|
|
|
|
|
|
| |
"exit_status > 1" instead of "exit_status == 2" in order to
detect errors, for portability with other POSIX-compliant
implementations.
|
|
|
|
|
|
|
|
|
|
|
|
| |
src/grep.h, po/da.po, po/nb.po, po/no.po, po/sv.po:
Replace all capitalized "Grep" by a lowercase "grep", except
in citations. Reported by Benno Schulenberg <benno@nietvergeten.nl>
from the <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=190551>
entry in the Debian bug tracker.
* doc/grep.1, doc/grep.texi: Explain that the "egrep" and "fgrep"
commands are deprecated and provided for historical applications.
Replace some "egrep" uses by "grep -E" to promote the newer usage.
Typeset "zgrep" as a command. Fix some spacing and punctuation bugs.
|
|
|
|
|
| |
* doc/grep.texi: Rewrite a poorly written usage example about
back-references, and tweak another. New text by Benno Schulenberg.
|
|
|
|
| |
* doc/grep.1: Fix a typo.
|
|
|
|
|
|
|
|
|
|
| |
make minimal progress and continue instead of aborting process
of the remainder of the line, in case there's still an upcoming
non-empty match.
* tests/foad1.sh: Add two tests for this.
* doc/grep.texi, doc/grep.1: Document this behavior, since
--only-matching and --color are GNU extensions which are
otherwise unspecified by POSIX or other standards.
|
|
|
|
| |
* doc/grep.1: Fix typo and reorganize GREP_COLORS documentation.
|
|
|
|
|
|
|
| |
partially used at this point to make for a simpler initial
patch in CVS. A subset of patch #3644 on Savannah.
The option name/calling convention is the same as for GNU diff.
* doc/grep.texi, doc/grep.1: Document -T/--initial-tab.
|
|
|
|
|
|
|
|
|
|
| |
partially used at this point to make for a simpler initial
patch in CVS. A subset of patch #3644 on Savannah.
* src/grep.c (color_cap_ne_fct, color_cap_xm_fct, print_filename,
print_sep, parse_grep_colors): New functions.
* src/grep.c (prtext, grepfile, main): Existing functions modified
to use the new framework.
* doc/grep.texi, doc/grep.1: Document GREP_COLORS.
|
|
|
|
|
| |
* 78 files: Update FSF's civic address, zip code,
and citizen relocation code.
|
|
|
|
| |
Based on a patch by Paul Eggert; suggested by Keith Marshall.
|
| |
|
|
|
|
|
|
| |
* doc/grep.texi: Minor fixes of phrasing.
* doc/grep.1: Likewise.
* src/grep.c: Likewise.
|
|
|
|
|
|
|
|
|
|
|
| |
* src/grep.c (usage): Use ``FILE_PATTERN'' for --include and --exclude,
change ``only print'' to ``print only''.
* doc/grep.1: Likewise; state that wildcard matching is used.
Move some options so that they are sorted alphabetically.
* dfa.c, NEWS: Fix typos.
* src/grep.c (usage): Clean up several details in the usage string.
* doc/grep.1: Fix descriptions of --include and --exclude.
* doc/grep.texi: Likewise.
|
|
|
|
|
|
|
|
|
|
| |
* ./cvsignore: Amended several .cvsignore files and
removed *.gmo, acinclude.m4 and stamp-h.in from the root one.
* m4/init.m4: Nuked, it was breaking current automake.
* m4/Makefile.m4: Removed init.m4.
* autogen.m4: Drop support for legacy autoconf; tell whether the
auto tools exited successfully or not; fix the permissions of
tests/*.sh--CVS doesn't provide a way to fix it.
|
|
|
|
|
|
|
|
| |
Change bug-gnu-utils address to bug-grep, on many places; there
is no need to have the word ``grep'' in subject then.
Thanks to Tony Abou-Assaleh and Benno Schulenberg for pointing
out this.
* 2.5.1 Release.
|