summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/grep
Commit message (Collapse)AuthorAgeFilesLines
* MFC r270668, r270669, r270672:gjb2014-08-291-0/+1
| | | | | | | | | | | | | r270668: Add gnugrep.1 to CLEANFILES. r270669: Add host.1 to CLEANFILES. r270672: Add svnlite.1 to CLEANFILES. Sponsored by: The FreeBSD Foundation
* Part of r245761 makes "grep -D skip" broken for pipes, i.e.ache2013-08-081-5/+7
| | | | | | | echo xxx | grep -D skip xxx returns nothing. Instead of just removing added S_ISFIFO condition (originally absent in this version of grep), make it work as latest GNU version does: don't skip directories and devices if fd == STDIN_FILENO.
* Adjust CFLAGS to pick up correct regex.h and posix/regex.h. Note thisjkim2013-06-061-2/+1
| | | | | | actually reverts r250860 and r250861. Reported by: gjb, tinderbox
* Connect libgnuregex 2.17 to the build.jkim2013-06-051-1/+2
|
* Don't look for headers outside of the source or object directories. Inmarcel2013-05-211-1/+1
| | | | | | | particular, don't use DESTDIR. Such creates an unnecessary dependency on the build machine. Obtained from: Juniper Networks, Inc.
* grep: change some int types.pfg2013-05-203-9/+11
| | | | | | | | | | | | | | | | Change several int variables to size_t, ssize_t, or ptrdiff_t. This should fix the bug described in CVE-2012-5667 when an input line is so long that its length cannot be stored in an int variable. This is based on NetBSD's revision which says: This change to NetBSD's version of GNU grep 2.5.1 (licenced under GPLv2) was made without direct reference to any code licenced under GPLv3. Obtained from: NetBSD MFC after: 3 days
* Make "-D skip" option work with FIFO by opening file in non-blocking mode.davidxu2013-01-221-2/+6
| | | | | Reviewed by: jhb Tested by: delphij
* Build and install a BSD licensed grep.obrien2011-05-251-0/+15
| | | | | | | | If WITH_BSD_GREP is not set, it will be 'bsdgrep' and GNUgrep will be '[ef]grep'. Otherwise, BSD-grep will be the grep family, and GNUgrep will be 'gnugrep'. Discussed with: brooks
* For files not named on the command line, only the basename is comparedobrien2009-01-301-2/+5
| | | | | | | | | to the exclude pattern. Change this so that "grep --exclude='*/.svn/*' -[Rr] foo *" DWIM. Obtained from: dave+news001@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Dave Gibson) Obtained from: comp.unix.questions [Thu, 15 Mar 2007 18:54:38 +0000] Obtained from: http://unix.derkeiler.com/Newsgroups/comp.unix.questions/2007-03/msg00046.html
* Add the -P option back, but with a note that it is not supported on FreeBSD.trhodes2006-10-111-0/+6
| | | | Requested by: ru
* grep -P xxx file.txttrhodes2006-10-101-5/+0
| | | | | | | "The -P option is not supported" Removed from the manual page via this commit. PR: 99831
* Correctly locate the character preceeding the matched string in -wtjr2006-02-191-5/+35
| | | | | | mode when in non-UTF-8 multibyte locales (e.g. EUC, GB2312, etc.). PR: 91909
* Fix a markup nit.ru2005-12-181-0/+1
| | | | | PR: docs/88848 Prodded by: remko
* Fix 'grep -Fw' for encodings other than UTF-8 (RH bug #161700).tjr2005-10-251-2/+2
| | | | | PR: 87969 Obtained from: Fedora (Tim Waugh)
* Document [:blank:].stefanf2005-10-231-0/+1
|
* Remove redundant string length check from the previous commit.jkim2005-10-211-2/+2
|
* Fix a longstanding buglet in bz-prefixed grep(1).jkim2005-10-201-5/+5
|
* Pass the RE_ICASE flag to re_set_syntax() as appropriate to fixtjr2005-05-311-3/+3
| | | | | | case-insensitive matching (-i option) in certain multibyte locales. Obtained from: Fedora
* Add a note explaining what local modifications have been made to GNU grep,tjr2005-05-141-0/+37
| | | | and giving advice on importing future releases.
* Fixed -w handling for EGexecute.tjr2005-05-141-4/+83
| | | | Obtained from: Fedora (Tim Waugh)
* Automatically disable DFA when processing multibyte input. GREP_USE_DFAtjr2005-05-141-3/+28
| | | | | | environment variable overrides. Obtained from: Fedora (Tim Waugh)
* Better multibyte handling in EGexecute() and Fexecute(). Fixed -Fi fortjr2005-05-141-131/+525
| | | | | | multibyte input (RH bug #143079). Obtained from: Fedora (Jakub Jelinek, Tim Waugh)
* Removed redundant (and incorrect) code in prline. Fixes grep -i --color "",tjr2005-05-141-27/+0
| | | | | | | among other things. PR: 79063 Obtained from: Fedora (Tim Waugh)
* Fix background colour problems with --color output (RH bug #138913).tjr2005-05-141-0/+1
| | | | Obtained from: Karsten Hopp via Fedora
* Fixed a bug in the fgrep patch, exposed by the dfa-optional patchtjr2005-05-141-27/+22
| | | | | | (RH bug #138558). Removed bogus part of grep-2.5.1-fgrep patch. Obtained from: Fedora (Jakub Jelinek, Tim Waugh)
* Fix dfa multibyte character class matching when -i is used (RH bug #123363).tjr2005-05-141-0/+2
| | | | Obtained from: Fedora (Tim Waugh)
* Remove mb-caching hack.tjr2005-05-146-188/+74
| | | | Obtained from: Fedora (Tim Waugh)
* Fix regression in output with -R compared to previous version.obrien2005-02-131-1/+1
| | | | | PR: 77466 Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com>
* The correct name of the long option is --line-buffered,keramida2004-11-091-2/+3
| | | | | | | | not --line-bufferring. PR: docs/72985 Submitted by: John Engelhart <johne@zang.com> MFC after: 1 week
* Change version string to distinguish our modified version of GNU greptjr2004-08-121-1/+1
| | | | from the original.
* Fix bug causing `[' to be wrongly included in character class expressionstjr2004-07-041-1/+1
| | | | | | in some multibyte locales (Red Hat bug #108484). Obtained from: Fedora (Tim Waugh)
* Make grep run much (~10x) faster in multibyte locales by caching the widetjr2004-07-046-74/+188
| | | | | | | character representation of input data across calls to dfaexec(), and by caching the lengths of character across calls to check_multibyte_string(). Obtained from: Fedora (Tim Waugh)
* Avoid accessing accessing memory past the end of mb_properties in thetjr2004-07-041-1/+2
| | | | | degenerate case of fgrep with an empty pattern in a multibyte locale. Found by phkmalloc.
* Improve case-insensitive matching in multibyte locales.tjr2004-07-043-28/+109
| | | | Obtained from: Isamu Hasegawa (IBM) via Fedora
* Fix failure of fgrep to report some matches (Red Hat bug #116909).tjr2004-07-041-57/+52
| | | | Obtained from: Fedora (Tim Waugh)
* Use hard_locale() to check whether collating order is "hard" regardlesstjr2004-07-041-2/+0
| | | | of whether NLS is enabled.
* Ignore ENABLE_NLS when deciding whether we can use setlocale().tjr2004-07-041-2/+4
| | | | Use the same shortcut as glibc to test for the "C" or "POSIX" locale.
* Update for grep 2.5.1.tjr2004-07-042-120/+254
|
* Merge local changes.tjr2004-07-049-881/+2674
|
* This commit was generated by cvs2svn to compensate for changes in r131554,tjr2004-07-0445-248/+5612
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import GNU grep 2.5.1 (trimmed)tjr2004-07-0454-1119/+8280
| |
* | Merge conflicts, upgradeache2004-03-018-41/+51
| |
* | This commit was generated by cvs2svn to compensate for changes in r126432,ache2004-03-018-10/+94
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Trimmed grep 2.4.2ache2004-03-0114-45/+136
| |
* | Oops, use -I${DESTDIR}/usr/include/gnu instead of ... /../../include/gnuache2004-02-171-1/+1
| |
* | 1) Remove files no longer needed.ache2004-02-168-1673/+2
| | | | | | | | 2) Switch back to regex.h
* | Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-051-4/+2
| |
* | We HAVE_STPCPY now.obrien2002-10-202-4/+3
| |
* | Added bzip2 variants to the NAME section.ru2002-10-071-4/+9
| | | | | | | | | | Added missing break. Remove the statement that -J requires zlib(3).
* | Allow -J to simultaneously do non-bzip2 grepping.obrien2002-10-061-10/+32
| | | | | | | | | | | | Don't allow -J and -Z together. Partially submitted by: knu
OpenPOWER on IntegriCloud