bug#27931: grep -o fails to count empty lines (Debain Bug #532541)

2017-08-03 Thread Paul Eggert
On 08/03/2017 06:28 AM, Santiago R.R. wrote: the -o option, which is supposed to return only the matching parts of the search, fails: It's not failing. It's behaving as documented: -o outputs only nonempty matches. Otherwise, commands like 'grep -o "a*"' would output a separate line for each

bug#27931: grep -o fails to count empty lines (Debain Bug #532541)

2017-08-03 Thread Santiago R.R.
(Sorry if it's already filed, but I am unable to find it in the bug archives) Hi, I'd like to forward this bug reported to Debian some years ago. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532541 It still happens in 3.1. Quoting the original report: When grepping for empty lines in a tex