Bug 119553

Summary: if grep matches the result will be echoed
Product: [Fedora] Fedora Reporter: Kaj J. Niemi <kajtzu>
Component: redhat-artworkAssignee: Alexander Larsson <alexl>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-04-06 14:35:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 114961    

Description Kaj J. Niemi 2004-03-31 12:42:01 UTC
Description of problem:
The postinstall script does the following:

if grep "Red Hat" /etc/redhat-release; then ....

which results in the matching string being echoed to the terminal. I
dont think it is desireable for output to appear in the middle of
up2date or a rpm transaction :) Trivial fix would probably be to
redirect stdout and stderr output to /dev/null or something like this:

if grep "Red Hat" /etc/redhat-release > /dev/null 2>&1; then ...


Version-Release number of selected component (if applicable):
redhat-artwork-0.95-1


Thanks.

Comment 1 Bill Nottingham 2004-04-01 05:38:41 UTC
grep -q?

Comment 2 Kaj J. Niemi 2004-04-01 09:33:09 UTC
That would work too :)

Comment 3 Alexander Larsson 2004-04-06 14:35:13 UTC
fixed in 0.95-3.