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@