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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content