obrien
6cd5c97e1c
Spell command names correctly. Even when they appear at the beginning
...
of a sentence.
1999-11-21 02:00:16 +00:00
obrien
dab516912f
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
obrien
dc73649f52
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
obrien
7daab43137
Alias -R to -r for backward compatibility.
...
Submitted by: ru
Requested by: wosch
1999-11-21 01:09:03 +00:00
obrien
e237a6b4a1
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
obrien
3f3aac940d
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
obrien
6cd485fb34
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
obrien
fa89658480
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
obrien
b8583bbe6e
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
obrien
176aae08a3
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
obrien
005b4899a6
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
peter
5354776cb2
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
ru
0b4f15f37a
Upgrade grep to version 2.3
1999-10-28 10:34:55 +00:00
ru
29127d3b8e
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
289c0d262f
$Id$ -> $FreeBSD$
1999-08-27 23:37:10 +00:00
wosch
09f406ace9
Added myself as maintainer.
1999-02-09 17:23:03 +00:00
wosch
d465d69601
Use mmap for reading files. This is faster than read().
1998-11-14 23:37:32 +00:00
obrien
5a6b93580f
Install z*grep manpages
1998-10-02 07:14:32 +00:00
bde
53d1b984ce
Fixed printf format errors.
1998-06-30 20:14:13 +00:00
wosch
bc665bbb6c
Delete cc(1) debug option, typo from last commit.
...
Pointed out by: Søren Schmidt
1998-03-07 16:13:57 +00:00
wosch
05604036c1
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
wosch
19c4e668e7
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
ache
43e60f18dd
Add unsigned char cast to ctype macros
1997-10-23 02:08:16 +00:00
ache
c722721f8f
Add (unsigned char) casts to ctype macros
1997-10-23 01:43:00 +00:00
mpp
6c3dd051db
Fix a number of typos, one of which is part of PR# 2917.
1997-03-09 00:33:19 +00:00
ache
ae538a3fbd
Replace collate_range_cmp call with its code (GNU version)
1996-10-31 07:45:15 +00:00
wosch
75b1ede7c4
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
wosch
5b3a6e6fa1
test 37: [b-a] is a syntax error and exit with status 2
1996-09-27 19:40:39 +00:00
ache
c7f1966900
Use collate for alpha character ranges
1996-08-13 14:21:48 +00:00
ache
f25f152775
Pick collate info too
1996-08-12 17:55:41 +00:00
wosch
114c8c73e7
recursive grep, enabled with -DHAVE_FTS=1
...
enable mmap (-DHAVE_MMAP=1)
1996-02-02 06:45:26 +00:00
peter
c3f352d4ad
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
ab124e78b0
recording cvs-1.6 file death
1995-12-30 19:02:48 +00:00
ache
88603439e6
Add setlocale LC_CTYPE
...
Fix icase searches for 8bit charsets
1995-10-28 19:16:14 +00:00
rgrimes
2ad6f3dee6
Remove trailing whitespace.
1995-05-30 05:05:38 +00:00
ache
e2db76d317
Use -lgnuregex
...
Tune for 8bit ctype
1995-01-11 05:07:00 +00:00
rgrimes
e700287fa6
Merge. Fix LINKS+= with $DESTDIR$BINDIR in them, you do NOT need to
...
specify $DESTDIR on a LINKS+= line.
1993-07-16 17:48:38 +00:00
conklin
69b29fcd36
Gnu grep 2.0 does fgrep too!
1993-07-08 16:18:59 +00:00
nate
bf3a05faf0
Removed egrep since the new grep is just a link to it w/out any changes
...
anymore
1993-07-06 18:53:50 +00:00
nate
acb9893ca7
Left an ugly in the Makefile
1993-07-06 18:45:59 +00:00
cvs2svn
bce1a0a51a
This commit was manufactured by cvs2svn to create branch 'FSF'.
1993-07-06 18:45:28 +00:00
nate
a166e91d63
Update GNU grep to version 2.0
1993-07-06 18:45:26 +00:00
nate
856e67877b
Ugh, whoever did the port made a mess, I cleaned up the Makefile and
...
deleted un-necessary stuff
1993-06-29 06:19:29 +00:00
nate
ecf0e2f6a5
Gnu e?grep 1.6
1993-06-29 06:04:45 +00:00
nate
c8aa5f4706
This commit was generated by cvs2svn to compensate for changes in r61,
...
which included commits to RCS files with non-trunk default branches.
1993-06-29 06:04:45 +00:00
nate
a7ff3658f6
Gnu e?grep 1.6
1993-06-29 06:04:45 +00:00