Bug in 'grep' command when invoked with multiple patterns

Solution Verified - Updated -

Issue

  • There is a bug in grep. It occurs when you run the command with multiple patterns to find (using the -e parameter). When the result is shown in the screen, it should paint every pattern found. From my tests, when in one line there are four or more matching patterns, some of them are not painted.

Environment

  • Red Hat Enterprise Linux (RHEL) 5
  • grep

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.