Skip to content
Commits on Mar 7, 2006
  1. Break patterns containing newlines into multiple patterns like POSIX …

    …says.
    
    Report by Ralf dot Wildenhues at gmx dot de;
    testing by jmc@ ok beck@ millert@
    Otto Moerbeek committed Mar 7, 2006
  2. -nv is a valid combination; confirmed by otto

    Jason McIntyre committed Mar 7, 2006
Commits on Feb 9, 2006
  1. delint; remove redundant vars and functions; ok jaredy@

    Otto Moerbeek committed Feb 9, 2006
Commits on Feb 7, 2006
  1. restore cosmic balance by plugging a mem leak; problem reported by

    Benjamin Pineau in PR 5008; ok weingart@
    Otto Moerbeek committed Feb 7, 2006
Commits on Jun 5, 2005
  1. s/-p1003.1-2003/-p1003.1-2004/g

    Jason McIntyre committed Jun 5, 2005
Commits on Apr 25, 2005
  1. - use size_t where appropriate.

    - check for <= 0 in gzread; it returns -1 on error.
    From christos@netbsd; ok millert@
    Otto Moerbeek committed Apr 25, 2005
Commits on Apr 3, 2005
  1. Make the processing of patterns collected from files specified by -f

    delayed so options that affect pattern-building (such as -w) can be
    applied evenly to all such patterns.
    
    ok and help otto, ok millert
    Jared Yanovich committed Apr 3, 2005
  2. Protect begin and end of word markers added to the pattern when

    using the -w option with parentheses, to avoid operators in the
    expressions binding to the markers. Compare [[:<:]]foo|bar[[:>:]]
    and [[:<:]](foo|bar)[[:>:]]. Problem spotted by aaron@; ok millert@
    aaron@ jaredy@
    Otto Moerbeek committed Apr 3, 2005
Commits on Feb 7, 2005
  1. Due to a braindead zlib, the test for seekability of a gzstream using

    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@
    Otto Moerbeek committed Feb 7, 2005
Commits on Feb 2, 2005
Commits on Jan 6, 2005
  1. clarify what -a does;

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

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

    (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@
    Otto Moerbeek committed Oct 3, 2004
Commits on Sep 28, 2004
  1. when stdin is searched, -L and -l print `(standard input)', not `-';

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

    more helpful;
    
    this includes some ideas/fixes from otto and jared;
    Jason McIntyre committed Sep 28, 2004
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
  1. Stop search when -q option is given and a match is found. Found by jmc@

    ok millert@
    Otto Moerbeek committed 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,

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

    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@
    Todd Miller committed May 7, 2004
Commits on May 6, 2004
  1. Don't fseek() on stdin if it is a terminal. It does not fail, but

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

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

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

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

    ok millert@ tedu@
    Otto Moerbeek committed Apr 2, 2004
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.

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

    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@.
    Todd Miller committed Jan 25, 2004
Commits on Jan 19, 2004
  1. -b reports offsets in bytes.

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

    the -b option.
    
    ok millert@
    Otto Moerbeek committed Jan 19, 2004
Commits on Jan 18, 2004
  1. Unbreak *grep -w -l. ok millert@

    Otto Moerbeek committed Jan 18, 2004
  2. make sure ln.len gets initialized. Okay millert@

    Marc Espie committed Jan 18, 2004
Something went wrong with that request. Please try again.