Back to bug 1367309

Who When What Removed Added
Jaroslav Škarvada 2016-08-16 08:49:47 UTC Status NEW ASSIGNED
Ondřej Lysoněk 2016-08-16 11:04:24 UTC CC olysonek
Assignee jskarvad olysonek
Ondřej Lysoněk 2016-08-16 11:14:28 UTC Status ASSIGNED MODIFIED
Fixed In Version grep-2.20-5.el6_8
errata-xmlrpc 2016-08-16 11:47:56 UTC Status MODIFIED ON_QA
Jan Kepler 2016-09-06 09:56:28 UTC QA Contact qe-baseos-apps jkejda
Jan Kepler 2016-09-06 09:58:57 UTC Status ON_QA VERIFIED
Jaroslav Škarvada 2016-10-04 09:58:20 UTC Doc Text Cause:
Grep update fixed old bug regarding '-r' switch which may lead to incompatibility with some old badly written scripts.

Consequence:
Previously 'grep -r PATTERN' wrongly read STDIN. After the grep update 'grep -r PATTERN' recursively scans current directory for files containing the PATTERN which is according to its documentation. This behavior may break some old badly written scripts.

Fix:
Backward compatibility environment variable GREP_LEGACY_R has been introduced, which if set to '1', causes grep to behave the old buggy way, otherwise the grep behaves the new way.

Result:
Now, if GREP_LEGACY_R environment variable is set to '1', 'grep -r PATTERN' reads STDIN, otherwise it recursively scans current directory for files containing the PATTERN.
Doc Type If docs needed, set a value Bug Fix
errata-xmlrpc 2016-10-04 12:46:32 UTC Status VERIFIED RELEASE_PENDING
errata-xmlrpc 2016-10-04 21:59:39 UTC Status RELEASE_PENDING CLOSED
Resolution --- ERRATA
Last Closed 2016-10-04 17:59:39 UTC

Back to bug 1367309