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.