Subject: CVS commit: othersrc/usr.bin/grep
To: None <source-changes@netbsd.org>
From: Chris Pinnock <cjep@netbsd.org>
List: source-changes
Date: 06/01/2003 13:01:55
Module Name: othersrc
Committed By: cjep
Date: Sun Jun 1 13:01:54 UTC 2003
Modified Files:
othersrc/usr.bin/grep: grep.c grep.h queue.c util.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -r1.22 -r1.23 othersrc/usr.bin/grep/grep.c
cvs rdiff -r1.12 -r1.13 othersrc/usr.bin/grep/grep.h
cvs rdiff -r1.3 -r1.4 othersrc/usr.bin/grep/queue.c
cvs rdiff -r1.14 -r1.15 othersrc/usr.bin/grep/util.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.