Package: grep;
Reported by: "Dale R. Worley" <worley <at> alum.mit.edu>
Date: 2024年4月23日 18:34:13 UTC
Severity: normal
Message #14 received at 70540 <at> debbugs.gnu.org (full text, mbox):
From: "Dale R. Worley" <worley <at> alum.mit.edu> To: Paul Eggert <eggert <at> cs.ucla.edu> Cc: 70540 <at> debbugs.gnu.org Subject: Re: bug#70540: grep -c -r | grep -v ':0$' Date: 2024年4月25日 16:10:23 -0400
Paul Eggert <eggert <at> cs.ucla.edu> writes: > On 4/23/24 11:32 AM, Dale R. Worley wrote: >> However, it seems "natural" to me that "grep -c -l", that is, "grep >> --count --files-with-matches", should give me this result. > > Yes, that sounds reasonable. Is your patch a trivial one (10 lines or > less)? If so, please send it in. If not, please send in copyright > paperwork for grep (I can send you the form for that). Thanks. The functional code is a bit less than 10 lines, but adding in comments and updates to the tests it's significantly longer. So send me the form. One further thing, I haven't written any updates to the manual page or .texi. Does anyone have suggestions for a good way to do that? Also, the code change does *not* implement --count --files-without-match. In a sense, that ought to become defined also, but the output would be the same as for --files-without-match with each file name getting ":0" appended, which seems not worth the trouble of implementing. Dale
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.