Commits on Feb 7, 2005
  1. Due to a braindead zlib, the test for seekability of a gzstream using

    omoerbeek committed Feb 7, 2005
    gzseek(f, 0L, SEEK_CUR) does not work as expected. Instead test the
    underlying stream and remember that. This repairs echo foo | gzip | zgrep foo.
    Problem spotted by Han Boetes in PR 4089; ok millert@
Commits on Feb 2, 2005
Commits on Jan 6, 2005
  1. clarify what -a does;

    Jason McIntyre committed Jan 6, 2005
    prod and ok deraadt@
Commits on Oct 4, 2004
  1. remove the section on extended regular expressions, and point

    Jason McIntyre committed Oct 4, 2004
    people instead to re_format.7: there is now a list of EREs there;
Commits on Oct 3, 2004
  1. Remove block based mmap optimization. There are newline problems

    omoerbeek committed Oct 3, 2004
    (PR 3940, 3941) which can be fixed, but if a match starts at the
    end of a block and continues into the next block, no match will be
    found.  Measurements by millert@ showed that the improvements of
    this optimization are non-measurable anyway. Diff from Alexander Taler.
    ok millert@
Commits on Sep 28, 2004
  1. when stdin is searched, -L and -l print `(standard input)', not `-';

    Jason McIntyre committed Sep 28, 2004
    from alexander taler (pr #3937);
  2. various fixes to make this page a bit clearer and hopefully a bit

    Jason McIntyre committed Sep 28, 2004
    more helpful;
    this includes some ideas/fixes from otto and jared;
Commits on Sep 16, 2004
  1. unused variables; otto ok

    Theo de Raadt committed Sep 16, 2004
Commits on Sep 15, 2004
  1. cast offset value correctly for gzseek

    Theo de Raadt committed Sep 15, 2004
Commits on Aug 11, 2004
Commits on Aug 5, 2004
  1. spacing

    Theo de Raadt committed Aug 5, 2004
Commits on May 7, 2004
  1. Make grep -w behave the same for the fastcomp and the regex case,

    omoerbeek committed May 7, 2004
    by teaching fastcomp what word boundaries are according to regex.
    ok millert@
  2. Add a new past path for fgrep that is just a simplified version of

    Todd Miller committed May 7, 2004
    fastcomp.  This makes fgrep faster and fixes the -w flag w/ fgrep.
    Also remove free_patterns() since calling free right before exit
    is silly.  Problem noticed by espie@
Commits on May 6, 2004
  1. Don't fseek() on stdin if it is a terminal. It does not fail, but

    omoerbeek committed May 6, 2004
    what's more more important, it does not work either.
    ok millert@ tedu@
Commits on Apr 17, 2004
  1. -w uses [[:<:]] and [[:>:]], not \< and \>,

    Jason McIntyre committed Apr 17, 2004
    and it's documented in re_format(7), not ex(1);
    from jared yanovich;
    ok beck@
Commits on Apr 3, 2004
  1. remove unnecessary .Sm macros (oops, this is my fault it ever

    Jason McIntyre committed Apr 3, 2004
    made it into the tree);
Commits on Apr 2, 2004
  1. Document --line-buffered

    omoerbeek committed Apr 2, 2004
    ok jmc@
  2. Implement --line-buffered

    omoerbeek committed Apr 2, 2004
    ok millert@ tedu@
Commits on Mar 15, 2004
Commits on Feb 4, 2004
  1. Fix anchors (^ or $) in -w mode broken by the last commit's -w overhaul.

    Todd Miller committed Feb 4, 2004
    With this change we pass the updated regress.  Tested and OK by ho@
Commits on Jan 26, 2004
Commits on Jan 25, 2004
  1. Previously, in -w mode, for each match on a line grep would check

    Todd Miller committed Jan 25, 2004
    to see if the match was on a word boundary.  However, this missed
    lines where the first match was not on a word boundary but a
    subsequent match was.  Problem originally spotted by miod@
    We fix this by using the [[:<:]] and [[:>:]] character classes for
    the slow path and by checking the word boundaries in grep_search()
    for the fast path instead of doing the checks after running
    regexec() or grep_search().
    With this change, grep passes the new regress tests 15 and 16.
    problem originally spotted by espie@.
Commits on Jan 19, 2004
  1. -b reports offsets in bytes.

    omoerbeek committed Jan 19, 2004
    ok millert@
  2. Use off_t for file sizes, and don't forget to print a ':' when using

    omoerbeek committed Jan 19, 2004
    the -b option.
    ok millert@
Commits on Jan 18, 2004
  1. make sure ln.len gets initialized. Okay millert@

    Marc Espie committed Jan 18, 2004
Commits on Dec 29, 2003
  1. fix zgrep failure when the uncompressed file begins with a newline

    Can Erkin Acar committed Dec 29, 2003
    also, search from the beginning if a stream or compressed file is
    identified as 'binary'.
    ok millert@, reported by tedu@, tested by jose@
Commits on Dec 11, 2003
  1. Sync usage() with SYNOPSIS in grep(1).

    Ryan McBride committed Dec 11, 2003
    ok deraadt@ jmc@
  2. Document use of [pattern] without -e, give example of -v with multiple

    Ryan McBride committed Dec 11, 2003
    ok deraadt@ jmc@
Commits on Dec 6, 2003
  1. Unbreak grepping for some patterns containing multiple dots. Fixes PR…

    omoerbeek committed Dec 6, 2003
    … 3597.
    ok deraadt@ millert@
Commits on Oct 28, 2003
  1. prototype declared static, but function was not. add static to function.

    Anil Madhavapeddy committed Oct 28, 2003
    millert@ otto@ ok
Commits on Oct 20, 2003
  1. typos from Jared Yanovich;

    Jason McIntyre committed Oct 20, 2003
Commits on Sep 27, 2003
  1. Correct wording on -C option.

    Ryan McBride committed Sep 27, 2003
    ok jmc@
Commits on Sep 18, 2003
  1. make this test look for spaces as well, to match other cases

    Bob Beck committed Sep 18, 2003
    ok fgs@ ok deraadt@