David E. O'Brien
07bdb1554d
Support the environtmental var "GREP_OPTIONS". Which can hold a set of
...
default options for diff. These options are interpreted first and can be
overwritten by explicit command line parameters.
Obtained from: GNU Grep 2.3h
1999-11-26 03:26:59 +00:00
David E. O'Brien
3c6c025dba
GNU killed this sometime before 2.3.
1999-11-24 15:11:51 +00:00
David E. O'Brien
ab473c8a50
Missed two.
...
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
1999-11-22 20:03:01 +00:00
David E. O'Brien
06adfd11a1
This commit was generated by cvs2svn to compensate for changes in r53574,
...
which included commits to RCS files with non-trunk default branches.
1999-11-22 10:31:17 +00:00
David E. O'Brien
6b769ae793
Virgin import of GNU Grep 2.3 [trimmed down].
1999-11-22 10:31:17 +00:00
David E. O'Brien
446b097ec8
Make the tests work again.
1999-11-22 09:48:04 +00:00
David E. O'Brien
cb8edeb588
spencer.tests is now spencer1.tests. The other files aren't part of
...
GNU Grep any longer.
1999-11-22 09:43:15 +00:00
David E. O'Brien
e0e99c88a7
Virgin import of GNU Grep 2.3 [trimmed down].
1999-11-22 09:32:57 +00:00
David E. O'Brien
5032ef7fec
This commit was generated by cvs2svn to compensate for changes in r53568,
...
which included commits to RCS files with non-trunk default branches.
1999-11-22 09:32:57 +00:00
David E. O'Brien
0630279783
Finish proper hookup of GNU Grep 2.3, including docs & config header file,
...
rather than the compile commandline from hell.
Submitted by: ru
1999-11-22 09:13:43 +00:00
David E. O'Brien
07e1e6193e
Build and install GNU Grep 2.3 docs.
1999-11-22 08:56:30 +00:00
David E. O'Brien
349c680aa7
Virgin import of a trimmed down GNU Grep 2.3.
1999-11-22 08:53:32 +00:00
David E. O'Brien
d025145f7a
This commit was generated by cvs2svn to compensate for changes in r53564,
...
which included commits to RCS files with non-trunk default branches.
1999-11-22 08:53:32 +00:00
David E. O'Brien
f90c9f8e9e
Restore the 2.3 config file.
1999-11-21 19:10:50 +00:00
Peter Wemm
bce3d5b6ef
Apply a bandaid to the grep Makefile to try and get it to compile and stop
...
breaking world.
1999-11-21 09:44:26 +00:00
David E. O'Brien
75b7d1d0ef
Spell command names correctly. Even when they appear at the beginning
...
of a sentence.
1999-11-21 02:00:16 +00:00
David E. O'Brien
5b104c31b2
Merge FreeBSD changes into 2.3:
...
* revs 1.5-6 - added builtin decompression using zlib library, option -Z.
Submitted by: ru
1999-11-21 01:55:21 +00:00
David E. O'Brien
678b4e4854
Virgin import of a trimmed down GNU Grep 2.3.
...
It is being re-imported here, to keep our long source change history with
this source continuous.
src/contrib/grep will be deleted some time in the very near future.
1999-11-21 01:50:08 +00:00
David E. O'Brien
dd5c240f7a
Merge FreeBSD changes into 2.3:
...
* rev 1.2 - use -lgnuregex
FreeBSD changes OBE'ed by 2.3:
* revs 1.4-5 - icase searches & ctype macro changes, fuctionality moved
elsewhere.
* rev 1.3 - Remove trailing whitespace. The GNU Grep maintainers did this
for us.
Submitted by: ru
1999-11-21 01:15:40 +00:00
David E. O'Brien
8d50785029
Alias -R to -r for backward compatibility.
...
Submitted by: ru
Requested by: wosch
1999-11-21 01:09:03 +00:00
David E. O'Brien
435811113f
Set default matcher from argv[0].
...
Merge FreeBSD changes into 2.3:
* revs 1.9-10 - built-in decompression using zlib(3) library
FreeBSD changes OBE'ed by 2.3:
* rev 1.7 - our "-q" flag. Use "-L" or "-l" now.
* revs 1.{4,6} - colleate, and with correct LC_ type.
* rev 1.3 - remove trailing whitespace.
Submitted by: ru
1999-11-21 01:02:48 +00:00
David E. O'Brien
4d0ccc8353
This is the stock 2.3 file (+ FreeBSD id). Since someone added 2.0 rather
...
than vendor importing the virgin 2.0 sources, we have to manually put this
on the HEAD branch.
1999-11-20 23:42:44 +00:00
David E. O'Brien
54d8658575
This is the stock 2.3 file (+ FreeBSD id). Since someone majorly SPAMMED
...
the repository by NOT vendor importing the virgin 2.0 sources, CVS had no
idea what to do here.
1999-11-20 23:41:24 +00:00
David E. O'Brien
651d50a82f
This is the stock 2.3 file (+ FreeBSD id). Since someone majorly SPAMMED
...
the repository by NOT vendor importing the virgin 2.0 sources, CVS had no
idea what to do here.
1999-11-20 23:16:11 +00:00
David E. O'Brien
7423a9f8e9
Merge FreeBSD changes into 2.3:
...
* rev 1.5 - use collate for alpha character ranges
* rev 1.3 - use -lgnuregex
Submitted by: ru
1999-11-20 23:09:17 +00:00
David E. O'Brien
c0e0ea0037
Virgin import of a trimmed down GNU Grep 2.3.
...
It is being re-imported here, to keep our long source change history with
this source continuous.
src/contrib/grep will be deleted some time in the very near future.
1999-11-20 18:37:42 +00:00
David E. O'Brien
2186a02c95
This commit was generated by cvs2svn to compensate for changes in r53469,
...
which included commits to RCS files with non-trunk default branches.
1999-11-20 18:37:42 +00:00
Peter Wemm
c18f2d82a5
Back out the botched attempt to update to gnu grep 2.3 (lots of history
...
was lost). Restore original version to try and avoid breaking the build
while David O'brien does a proper set of imports and merges.
Requested by: obrien
1999-11-20 09:40:28 +00:00
Ruslan Ermilov
be59282c27
Upgrade grep to version 2.3
1999-10-28 10:34:55 +00:00
Ruslan Ermilov
a4e449c8a3
Cast tp[-2] to unsigned char before comparing.
...
PR: 14011
Ignored by: maintainer
Obtained from: GNU grep 2.3
1999-10-13 12:06:35 +00:00
Peter Wemm
9b7a44a60e
$Id$ -> $FreeBSD$
1999-08-27 23:37:10 +00:00
Wolfram Schneider
1c9a0db841
Added myself as maintainer.
1999-02-09 17:23:03 +00:00
Wolfram Schneider
3067a7048b
Use mmap for reading files. This is faster than read().
1998-11-14 23:37:32 +00:00
David E. O'Brien
27d73120d4
Install z*grep manpages
1998-10-02 07:14:32 +00:00
Bruce Evans
2512f2fe3b
Fixed printf format errors.
1998-06-30 20:14:13 +00:00
Wolfram Schneider
32dcb97f3e
Delete cc(1) debug option, typo from last commit.
...
Pointed out by: Søren Schmidt
1998-03-07 16:13:57 +00:00
Wolfram Schneider
15ec2a04f8
When called as `zgrep', the -Z argument is assumed. Make a
...
link from zgrep to grep.
Pointed out by: Tim Vanderhoek <hoek@hwcn.org> and
Mike Smith <mike@smith.net.au>
1997-12-21 19:15:12 +00:00
Wolfram Schneider
a6f4e3c4dc
Added builtin decompression using zlib library, option -Z.
...
Enabled this new feature with the makefile variable GREP_LIBZ. If
you don't like it, compile with `make GREP_LIBZ='.
grep + zlib has several advantages:
- the shell script zgrep(1) will be basically a one line
exec grep -Z "$@"
- no shell script, no bugs. The current zgrep implementations
have many bugs and some grep options are no supported.
- no shell script, no security risks.
- it is a magnitude faster than a shell script
Also fixed:
0 -> STDIN_FILENO
Close a file descriptor only if the open call was successfully. It does
not hurt for the open(2) function, but the gzclose(3) function
died in free() to free up (not) allocated memory.
1997-12-20 18:46:09 +00:00
Andrey A. Chernov
62fe88f9af
Add unsigned char cast to ctype macros
1997-10-23 02:08:16 +00:00
Andrey A. Chernov
8b50620f9a
Add (unsigned char) casts to ctype macros
1997-10-23 01:43:00 +00:00
Mike Pritchard
6d9688a364
Fix a number of typos, one of which is part of PR# 2917.
1997-03-09 00:33:19 +00:00
Andrey A. Chernov
d635f7bb20
Replace collate_range_cmp call with its code (GNU version)
1996-10-31 07:45:15 +00:00
Wolfram Schneider
d7c71d3534
grep -q pattern file
...
search 'pattern' in whole file 'file', from top to bottom. This is
not necessary; if grep found 'pattern' it can stop further searching
in file 'file'.
Example:
$ time ./grep-old -q Adam /usr/share/dict/*
1.93 real 1.05 user 0.85 sys
$ time ./grep-new -q Adam /usr/share/dict/*
0.14 real 0.06 user 0.06 sys
1996-09-27 19:44:46 +00:00
Wolfram Schneider
8a9374d25b
test 37: [b-a] is a syntax error and exit with status 2
1996-09-27 19:40:39 +00:00
Andrey A. Chernov
5dc826672f
Use collate for alpha character ranges
1996-08-13 14:21:48 +00:00
Andrey A. Chernov
83d7542f35
Pick collate info too
1996-08-12 17:55:41 +00:00
Wolfram Schneider
12e1f465dd
recursive grep, enabled with -DHAVE_FTS=1
...
enable mmap (-DHAVE_MMAP=1)
1996-02-02 06:45:26 +00:00
Peter Wemm
6065a0be11
This commit was generated by cvs2svn to compensate for changes in r13122,
...
which included commits to RCS files with non-trunk default branches.
1995-12-30 19:02:48 +00:00
Peter Wemm
a5b996a7ec
recording cvs-1.6 file death
1995-12-30 19:02:48 +00:00
Andrey A. Chernov
9203a11a55
Add setlocale LC_CTYPE
...
Fix icase searches for 8bit charsets
1995-10-28 19:16:14 +00:00