Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Sep 9, 2003
Commits on Sep 7, 2003
  1. Fix "grep -number" support for multi-digit numbers. At issue is

    Todd Miller authored
    the fact that optind refers to the *next* argument to be consumed
    by getopt(), not the current one.  This means we have to keep track
    of when we are working with a new argv entry by hand.  OK hugh@
  2. extend ascii test for more accuracy. ok deraadt@ pb@

    Ted Unangst authored
Commits on Aug 20, 2003
  1. Add curly braces {} to the list of special characters in egrep mode.

    Todd Miller authored
    From Piotr Domagalski, closes PR 3405
Commits on Aug 11, 2003
  1. typo, pr3396 from piotr domagalski

    Ted Unangst authored
Commits on Jul 20, 2003
  1. After some discussion on icb it seems a do {} while is what we want

    Todd Miller authored
    after all since there's no need to check an invariant the first
    time through.  I've fixed the loop invariants (we need to take
    special care with the "j == fg->patternLen" case) and hopefully
    made things a tad bit clearer.  tedu@ OK
Commits on Jul 17, 2003
  1. Make it clear what -C does w/o having to read the description of -A/-B.

    Todd Miller authored
    Lack of clarity pointed out by Sam Smith, different fix suggested by jmc@
Commits on Jul 16, 2003
  1. When reallocing pattern, use sizeof(*pattern) not sizeof(int).

    Todd Miller authored
    Fixes a problem on sparc64 where sizeof(int) != sizeof(pointer).
    Based on a patch from Brian Poole; tedu@ OK
Commits on Jul 15, 2003
  1. - .Ql Li -> .Ql (Ql already provides literal font)

    Jason McIntyre authored
    - remove a .Pp
Commits on Jul 14, 2003
  1. range-check numeric arguments (-num, -A num, -B num)

    Todd Miller authored
Commits on Jul 10, 2003
  1. restore grep -v semantics, print lines that don't match any (mismatch…

    Daniel Hartmeier authored
    … all)
    patterns. ok tedu@, millert@
  2. grep should exit(2) on error, not exit(1) (1 means no matches found).

    Todd Miller authored
    deraadt@ OK
  3. knf

    Theo de Raadt authored
  4. Fix parsing of -NUMBER. We now do things a digit at a time and

    Todd Miller authored
    keep track of what the last char from getopt was as well as the
    previous value of optind so we know when a new number has started.
Commits on Jul 6, 2003
  1. no need to redefine strlcpy here; millert@ ok

    Anil Madhavapeddy authored
Commits on Jul 2, 2003
  1. protos

    Theo de Raadt authored
Commits on Jul 1, 2003
  1. Fix bounds check in the fast grep code that caused an incorrect

    Todd Miller authored
    array access (and a core dump on sparc64 at least).  Noticed by
    sturm@ and pvalchev@.  Fix tested an OK by pvalchev@.
Commits on Jun 25, 2003
  1. o remove useless cast to int from gzread() call

    Todd Miller authored
    o maxPatternLen should be size_t since that's what it is compared against
    o remove useless casts of NULL to various pointer types
  2. knf

    Theo de Raadt authored
  3. backwards args to gzseek

    Ted Unangst authored
Commits on Jun 24, 2003
  1. Make 'grep -w' work; OK tedu@

    Todd Miller authored
  2. actually do fgrep. -G -F and -E are now mutally exclusive, and override

    Ted Unangst authored
    the program name as expected.  ok millert@
  3. tweak boolean test to be clear

    Ted Unangst authored
Commits on Jun 23, 2003
  1. strncpy -> memcpy per deraadt suggestion.

    Ted Unangst authored
    also add a note why we can't use strlcpy.
  2. go back to using strncpy. for long patterns, strlcpy reads too much

    Ted Unangst authored
    of a potentially nontermined src.
  3. faster grep for simple patterns. derived from a patch by sean farley.

    Ted Unangst authored
    this makes searching for constant strings much faster by avoiding regex.
    ok deraadt@
  4. document two long options without short equivs.

    Ted Unangst authored
    ok and help jmc@
  5. minor tweaks

    Theo de Raadt authored
  6. use strlcpy, not strncpy. ok deraadt@ millert@

    Ted Unangst authored
  7. spelling

    Ted Unangst authored
Something went wrong with that request. Please try again.