bug#28682: Possible bug in conflict between -m and -A

2017-10-05 Thread Paul Eggert
On 10/05/2017 04:06 PM, Jesse Eedrah wrote: # grep (GNU grep) 2.27 Ah, the problem you describe was fixed in grep 3.1; please upgrade.

bug#28682: Possible bug in conflict between -m and -A

2017-10-05 Thread Jesse Eedrah
Oh my, that's embarrasing. I seem to have copy-pasted badly - what I get when I make my testing overly complicated. Here's a simpler testing suite: I would think that by asking for 2 matching lines and 3 lines of trailing context, I would get 3 lines no matter what, even if there was another coinc

bug#28682: Possible bug in conflict between -m and -A

2017-10-03 Thread Paul Eggert
On 10/02/2017 11:00 PM, Jesse Eedrah wrote: Hi there! I have potentially found a suprising result when I use the grep options -m and -A together. I don't see why it's a surprise: it's the behavior I would expect. -m 2 means that only the first two Hello lines are considered to match, and the

bug#28682: Possible bug in conflict between -m and -A

2017-10-02 Thread Jesse Eedrah
Hi there! I have potentially found a suprising result when I use the grep options -m and -A together. It surprised me, so let me know if I've found a bug. It would be nice if I could contribute a fix - I'd love to contribute to the project. Below is bash code to replicate. Best regards, Jesse ##