grep --include not working properly on rhel 6.4
Issue
We're experiencing strange behavior with grep that appears to be a known bug in 2.6.3, see
http://savannah.gnu.org/bugs/index.php?29876
grep --include is not behaving as expected but exactly as grep --exclude:
$ echo foo > 1; echo foo > 2
$ grep -H foo *
1:foo
2:foo
$ grep --exclude 1 -H foo *
2:foo
$ grep --include 1 -H foo *
2:foo
Environment
- Red Hat Enterprise Linux (RHEL) 6.4
- grep-2.6.3-4.el6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
