To the maintainers of GNU grep: I came across a behavior I didn't expect when using grep with the flags --after-context and --max-count. If PATTERN is in the context, it won't be printed, presumably because I specified max count. Is this intended or a bug?
```sh $ cat tmp.txt hi hello test hey there $ grep -A 3 -m 1 h tmp.txt hi ``` Expected behavior: hi hello test Thanks for your time, Joshua Nelson -- B.S. Computer Science College of Engineering and Computing | South Carolina Honors College (813) 404-5744 <tel:8134045744> | jynel...@email.sc.edu <mailto:jynel...@email.sc.edu> GitHub <https://github.com/jyn514> | LinkedIn <https://www.linkedin.com/in/joshuayn> | website <https://jyn514.github.io/> This message was sent with a PGP <https://jyn514.github.io/> signature.
signature.asc
Description: OpenPGP digital signature