RHBA-2016:2000

Type: Bug fix
Severity: None
Published: 2016-10-04
Red Hat Enterprise Linux 6

The grep utility searches through textual input for lines that contain a match to a specified pattern and then prints the matching lines. The GNU grep utilities include grep, egrep, and fgrep. This update fixes the following bug: * In the past, the "grep -r PATTERN" command incorrectly read from the standard input instead of recursively scanning the current directory for files containing the PATTERN. This has been fixed in a past update. However, the new correct behavior broke some scripts that assumed the old functionality. This update introduces a backward compatibility environment variable GREP_LEGACY_R. If set to '1', it makes grep behave the old incorrect way, and can be used to make the old scripts work again. (BZ#1367309) Users of grep are advised to upgrade to these updated packages, which fix this bug.

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-27T21:36:26.031Z UTC

Official vendor advisory

Red Hat Enterprise Linux 6

View source
Observed 2026-11-27T21:36:26.031Z UTC. Last updated 2026-10-07T05:55:18.276Z UTC.

Upstream Advisory

Affected Packages

  • grep 2.20-5.el6_8

Interested in being alerted when there are new versions of grep? Set up an alert.
RHBA-2016:2000: grep bug fix update | Package Alert