Red Hat Bugzilla – Bug 818775
grep --devices=skip ignores stdin
Last modified: 2012-05-06 00:53:07 EDT
Description of problem:
In F16, "grep --devices=skip" would search stdin if no files were specified on the command-line. In F17, it returns immediately with exit status 1. This breaks grep wrappers that assume (based on previous behavior) that it's okay to specify --devices=skip.
It appears that this might be a regression in grep 2.11 which is fixed in 2.12, considering the wording in the manual page has changed. See http://www.gnu.org/software/grep/manual/grep.html where it says "This option has no effect on a file that is read via standard input."
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. echo foo | grep -q --devices=skip foo
exit status 1
exit status 0
In fact, this regression is specifically called out as one of two regressions fixed in grep 2.12: http://savannah.gnu.org/forum/forum.php?forum_id=7207
grep-2.12-1.fc17 has been submitted as an update for Fedora 17.
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing grep-2.12-1.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Thanks for your quick attention to this Jaroslav! The update is working well for me, and I left karma as requested.
grep-2.12-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.