OpenBSD CVS

CVS log for src/usr.bin/grep/grep.c


[BACK] Up to [local] / src / usr.bin / grep

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_3_4


Revision 1.23 / (download) - annotate - [select for diffs], Sun Sep 7 19:40:54 2003 UTC (20 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.22: +10 -10 lines
Diff to previous 1.22 (colored)

Fix "grep -number" support for multi-digit numbers.  At issue is
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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.