-+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- NOTE: This file was automatically generated by `cvs2cl.pl'. If you edit this file, your changes will be lost when someone next runs cvs2cl.pl. See http://www.red-bean.com/~kfogel/cvs2cl.shtml for more. -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- -+- 2003-12-30 15:29 cjep * grep.h: Bump version for pkgsrc purposes * TODO: Update 2003-11-08 20:08 cjep * file.c: Exit with 2 on errors. * grep.c: As per OpenBSD grep, use the size of *r_pattern * mmfile.c: mmap returns MMAP_FAILED on failure. Noted from OpenBSD grep * binary.c: Use correct {f,gz}seek parameters. Remove unnecessary cast from gzread. Fixes from OpenBSD grep. 2003-11-08 17:24 cjep * TODO, binary.c, file.c, grep.c, grep.h, mmfile.c, queue.c, util.c: Some source code fixes. Remove unused functions. Remove unused variables. No functional changes. 2003-11-05 16:39 cjep * grep.1: Redo -C 2003-11-02 18:36 cjep * TODO, grep.c, grep.h: Fix reading expressions from a file by tuning the size to realloc. Noticed in OpenBSD. Bump version. 2003-09-21 15:42 cjep * grep.c: Remove unused variable 2003-09-14 15:12 cjep * grep.h: Bump version * TODO: Update * util.c: Fix context output (hopefully properly this time). 2003-09-07 15:29 cjep * TODO, util.c: Fix output of -v. 2003-09-06 19:17 cjep * TODO: Note about context grepping 2003-09-06 19:11 cjep * TODO: Note about -v 2003-09-06 11:00 cjep * TODO: Make note about -f 2003-08-31 08:49 cjep * TODO: update * util.c: Zero the tail variable. This fixes the output of grep -z -A# when multiple files are grepped. 2003-08-24 23:25 cjep * grep.h: Bump version 2003-08-24 23:16 cjep * util.c: line_endchar is for input file (not for output) * file.c: Use libc fgetln if normal lines 2003-08-24 22:48 cjep * grep.c: Resurrect hflag and Hflag in this file. Ensure that -h is honoured. 2003-08-24 22:41 cjep * grep.c, grep.h, util.c: Replace hflag and Hflag with output_filenames. When we have one filename that is a directory, output filenames. If the one filename is not a directory don't. 2003-08-24 20:47 cjep * grep.c, grep.h, queue.c, util.c: Fix output with -A, -B, -C together with -Z, viz. print \0 instead of -'s after the filenames. 2003-08-24 20:39 cjep * util.c: Match GNU grep's output for -A, -B, -C together with -r. 2003-08-24 20:28 cjep * grep.c, grep.h, util.c: Always output \0 after filenames with -Z. 2003-08-24 18:07 cjep * grep.h: Use date as version * grep.c, grep.h: Replace VER_ defines with one string define. Update version number. 2003-08-24 18:02 cjep * grep.c: Handle numerical options better by introducing a frontend to getopt_long called grep_getopt. Now -3r5 will work as a valid option. Inspired by GNU grep's get_nondigit_option(). 2003-08-24 16:26 cjep * grep.c: Make numerical arguments work. 2003-08-24 16:07 cjep * grep.c: Check arguments to -A, -B and -C. As per GNU grep, -C now requires an argument. XXX -num does not work for >=2 digit numbers (yet). * grep.c: ctype.h not required. 2003-08-24 13:28 cjep * grep.c: Make -C[optional arg] work. 2003-08-23 17:39 cjep * grep.1: Correct -a description. * TODO: Sync with my list. 2003-07-20 13:45 cjep * Makefile, grep.c: Also install and work as zegrep and zfgrep. From OpenBSD. 2003-07-20 13:27 cjep * util.c: Don't report matches of binary files when in quiet mode. From OpenBSD. 2003-07-20 13:07 cjep * grep.c, util.c: Should exit with 2 on error. From OpenBSD. 2003-07-20 12:59 cjep * grep.c, grep.h: Reorder code so that the way grep is run is considered before command-line flags. Actually implement -F (fgrep). From OpenBSD. 2003-07-20 10:53 cjep * file.c: grep should exit with 2 on error. From OpenBSD. 2003-06-07 15:44 cjep * TODO: update * TODO, grep.c, grep.h, util.c: Implement --max-count 2003-06-07 15:19 cjep * util.c: Only count each matched line once. 2003-06-07 08:59 cjep * grep.c, grep.h, util.c: Respect GREP_COLOR. 2003-06-07 08:49 cjep * grep.c: Implement full GNU colo(u)r options. Check that stdout is a valid non-dumb terminal in the default --colour case. 2003-06-01 13:01 cjep * grep.c, grep.h, queue.c, util.c: Implement -o. Start of implementation of --colo(u)r. When processing the line, keep track of the matches inside it. When printing the line, only print matches if the -o flag is supplied or print the matched part in colour (green) if using --color or --colour. * TODO: update 2003-06-01 11:53 cjep * util.c: Set nmatch to 1 so that regexec fills in pmatch 2003-05-26 16:50 cjep * binary.c, file.c, grep.c, mmfile.c, util.c: Implement --null-data correctly. XXX The implementation of grepfgetln in this commit could probably XXX use some work. * TODO: Add note 2003-04-06 16:29 cjep * TODO: More 2003-04-06 11:26 cjep * grep.c, grep.h, util.c: 1. Make the default behaviour to warn about directory cycles. e.g. where test/foo/foo -> test/foo: ./grep -rl chris test test/foo/chris grep: warning: test/foo/foo: recursive directory loop 2. Replace code dealing with -P, -S and the former -H option with code to handle a long option called --links. Comment this out (it still needs some work). Temporarily remove -P, -S. * TODO: Update. 2003-04-05 16:33 cjep * grep.c: Be consistent with usage of getopt_long and remove some unused variables 2003-03-29 16:55 cjep * grep.1: Update for -o, -H and -I. 2003-03-29 16:50 cjep * grep.c, grep.h, util.c: Implement --binary-files and -I. --binary-files can be given a action for dealing with binary files. The valid actions are: binary (default) - Output a message if a binary file matches. without-match - Skip binary files. -I is equivalent. text - treat file as text. -a is equivalent. 2003-03-29 16:14 cjep * grep.c: Fix error handling and version output. 2003-03-29 16:05 cjep * TODO: label done. * grep.c, grep.h, util.c: Implement --label. When grep is invoked with --label=LABEL, displays input coming from standard input as if coming from the file LABEL. Can be useful when using pipes. 2003-03-29 15:39 cjep * TODO: Done --devices. * grep.c, grep.h, util.c: Implement --devices, -D. If "read" is given on the command line, devices, FIFOs and sockets are read as if they are ordinary files (default). If "skip" is given, then these files are skipped. Move directory checking to procfile to avoid stating twice to check file types. * grep.1: Mention -D. 2003-03-29 14:48 cjep * TODO: Update * grep.c: Resurrect -R * grep.c, grep.h, util.c: 1. Remove -H flag for defining symbolic link behaviour with -r. 2. Replace -o flag with -H and --with-filename. 2003-03-29 13:38 cjep * TODO: Make note about -o and -H. 2003-03-29 13:27 cjep * grep.c: Recognise --mmap. On GNU grep this means use memory-mapped input where possible. This grep attempts to do this by default. 2003-03-29 13:08 cjep * grep.c: The long version of -v should b --invert-match 2003-03-29 11:03 cjep * grep.1: Document -z, -Z and -d. A few fixes also. 2003-03-29 10:38 cjep * grep.c, util.c, grep.h: Implement -z and --null-data. 2003-03-29 10:30 cjep * grep.c, grep.h, util.c: Add -Z, --null as per GNU grep. 2003-03-22 17:25 christos * Makefile, grep.c, grep.h, queue.c, util.c: WARNS=2 2003-03-22 11:16 cjep * TODO: Add brief TODO list. 2003-03-22 10:51 cjep * binary.c, file.c, util.c: Make -a match GNU grep (before, it seemed to do the opposite to what was intended). If a binary file matches and we don't have -a, print a string to say that the file matches, following what GNU grep does if other flags are present (e.g. if we have -c, don't print "Binary file matches" output). * grep.c, util.c: Implement -d option for directory handling. The default is to grep a directory. The option can be used to recurse down a directory tree (i.e. -r) or skip directories. Get rid of rflag variable. When recursing, do not treat directories as files (by ignoring directories in pre-order). * grep.c, grep.h: Sort options. Don't use -R, use -r. * Makefile: Temporarily unset WARN. * grep.c: Add --fixed-regexp option (trivially). * file.c, grep.c, grep.h: Remove -Z (and --decompress for now) as these are incompatible with GNU grep. We still have this functionality if invoked as "zgrep". * grep.c: Recognise --help. * grep.c: Use getprogname(). * Makefile, binary.c, file.c, grep.1, grep.c, grep.h, mmfile.c, queue.c, util.c: Add NetBSD RCS IDs and clean up the Makefile. 2003-03-22 10:45 cjep * Makefile, binary.c, file.c, grep.1, grep.c, grep.h, mmfile.c, queue.c, util.c: branches: 1.1.1; Initial revision * Makefile, binary.c, file.c, grep.1, grep.c, grep.h, mmfile.c, queue.c, util.c: Initial import of a BSD-licensed grep by James Howard and Dag-Erling Codan Smrgrav. This import is of version 0.16.