[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: --only-match
From: |
Daiki Ueno |
Subject: |
Re: --only-match |
Date: |
09 May 2001 03:31:00 +0900 |
User-agent: |
T-gnus/6.15.3 (based on Oort Gnus v0.03) |
>>>>> In <address@hidden>
>>>>> Paul Eggert <address@hidden> wrote:
> If I understand it correctly, the proposed code prints just the first
> match in each line. This doesn't sound right to me: it should print
> each match that it finds. This raises the issue of whether it should
> print overlapping matches; presumably it should. It also raises the
> issue of how many empty strings occur in a file: presumably it's only
> one per input character, as otherwise 'grep' would loop.
> Also, the option needs to be tested in combination with other options.
> For example, from looking at the patch it appears to me that the
> option does not work correctly if you also ask for the match to be
> printed in color.
Thanks for your review. I think the attached patch should work this time.
matching-string.diff
Description: Binary data
Regards,
--
Daiki Ueno