RHBA-2016:2000
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
Last supporting evidence check: 2026-11-27T21:36:26.031Z UTC
Upstream Advisory
Affected Packages
grep 2.20-5.el6_8