grep-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] grep: add --max-count command line option


From: Paul Eggert
Subject: Re: [PATCH] grep: add --max-count command line option
Date: Mon, 16 May 2022 22:53:59 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

On 5/16/22 08:36, Junio C Hamano wrote:
"GNU grep has been doing so for the past 20 years and existing users
of the command expects '-m 0' to behave that way" is a good enough
reason, especially if '-m 0' is not the only possible way to say
"unlimited".

Yes, I'm inclined in the same direction, now that I see more of the context. That is, GNU grep can continue what it's long been doing, with the only change being to the documentation so that we document -m-1 as meaning "unlimited". This minimizes possible disruption to existing scripts and satisfies the use case of having a way to turn off any previously-appearing -m option.

I installed the attached to the GNU grep master doc to do that. Hope this works for you.

Attachment: 0001-grep-document-m-better.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]