Commit Graph

26 Commits

Author SHA1 Message Date
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
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
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
ecf0e2f6a5 Gnu e?grep 1.6 1993-06-29 06:04:45 +00:00
nate
a7ff3658f6 Gnu e?grep 1.6 1993-06-29 06:04:45 +00:00