Permalink
Commits on Jun 8, 2010
  1. Move -lz out of the Minix special case, where it doesn't belong

    howardjp committed Jun 8, 2010
    and back into the general case.
  2. Restructure the Makefile so that multiple operating system

    howardjp committed Jun 8, 2010
    checks are not necessary.  It may be prudent, at this time, to
    redevelop the build system based on autoconf.
  3. Removed the dependecy on libz from the Makefile

    gautambt committed Jun 8, 2010
Commits on Jun 7, 2010
  1. Cleanup.

    gautambt committed Jun 7, 2010
  2. Last commit was incomplete.

    gautambt committed Jun 7, 2010
  3. Minix specific changes - Quick and dirty.

    gautambt committed Jun 7, 2010
Commits on Dec 9, 2009
Commits on Dec 8, 2009
  1. Include unistd.h to fix some compile-time errors on FreeBSD 8-STABLE.

    howardjp committed Dec 4, 2009
    Signed-off-by: James P. Howard, II <jh@jameshoward.us>
Commits on Nov 28, 2009
  1. This removes the include to <sys/limits.h> in grep.c which is not

    howardjp committed Nov 28, 2009
    necessary since grep.h includes it but also replaces that include
    with an include to <limits.h> for portability, or something
    approaching it.
  2. Merge branch 'openbsd'

    howardjp committed Nov 28, 2009
    Conflicts:
    	grep.c
    	mmfile.c
  3. bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a…

    Jason McIntyre committed with howardjp Feb 8, 2009
    … few
    
    updates to follow;
  4. two globals not needed in NOZ mode

    Theo de Raadt committed with howardjp Oct 16, 2008
  5. Process patterns containing $ end ^ (but not as last or first char)

    omoerbeek committed with howardjp Oct 2, 2007
    using regcomp() instead of fastcomp(). ok millert@
  6. use calloc() to avoid malloc(n * m) overflows; checked by djm canacar…

    Theo de Raadt committed with howardjp Sep 2, 2007
    … jsg
  7. convert to new .Dd format;

    Jason McIntyre committed with howardjp May 31, 2007
  8. - use a consistent text for STANDARDS

    Jason McIntyre committed with howardjp May 30, 2007
    - note which options are extensions to POSIX
  9. - Be explicit on command line checking, instead of relying on patterns,

    mkilian committed with howardjp Feb 13, 2007
      which may be NULL (e.g. -e '').
    - let add_pattern() decide how to deal with empty patterns, don't do
      magic in read_patterns().
    
    This unbreaks stuff like grep -e '', and makes grep -f <file> more
    POSIX compliant. Semantics for grep -f /dev/null (or any other empty
    file) may be questionable, but this case isn't specified by POSIX,
    and matching nothing at all seems to be sane.
    
    Thanks to otto@, who mentioned potential problems related to the
    -x option with the first patch i sent.
    
    ok jaredy@ (some time ago), otto@, millert@
  10. Reset the number of lines of tail context left to print

    Jared Yanovich committed with howardjp Nov 17, 2006
    before processing each file to avoid printing lines
    intended from the previous file.
    
    Reported and fix by Charles Longeau <chl@tuxfamily.org>
    via tech@.
    
    ok otto millert
  11. Check length before checking index of len - 1.

    raylai committed with howardjp Nov 2, 2006
    OK moritz@.
  12. Allow zero-length patterns with -x so

    Jared Yanovich committed with howardjp Sep 26, 2006
      $ grep -x ""
    
    matches empty lines as reported on misc@ by
    Martin Marusak <marusak@fhpv.unipo.sk>.
    Initial diff by otto@ with tweaks by me.
    
    ok otto
  13. That should be S_ISREG, dunno why I committed this wrong version;

    omoerbeek committed with howardjp Sep 20, 2006
    spotted by hshoexer@
  14. Use S_IS* macros insted of masking with S_IF* flags. The latter may

    omoerbeek committed with howardjp Sep 19, 2006
    have multiple bits set, which lead to surprising results. Spotted by
    Paul Stoeber, more to come. ok millert@ pedro@ jaredy@ djm@
  15. Break patterns containing newlines into multiple patterns like POSIX …

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

    Jason McIntyre committed with howardjp Mar 7, 2006
  17. restore cosmic balance by plugging a mem leak; problem reported by

    omoerbeek committed with howardjp Feb 7, 2006
    Benjamin Pineau in PR 5008; ok weingart@
  18. s/-p1003.1-2003/-p1003.1-2004/g

    Jason McIntyre committed with howardjp Jun 5, 2005
  19. - use size_t where appropriate.

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

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

    omoerbeek committed with howardjp Apr 3, 2005
    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@
  22. Due to a braindead zlib, the test for seekability of a gzstream using

    omoerbeek committed with howardjp 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@
  23. clarify what -a does;

    Jason McIntyre committed with howardjp Jan 6, 2005
    prod and ok deraadt@
  24. remove the section on extended regular expressions, and point

    Jason McIntyre committed with howardjp Oct 4, 2004
    people instead to re_format.7: there is now a list of EREs there;