Bug 119553 - if grep matches the result will be echoed
Summary: if grep matches the result will be echoed
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-artwork
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Alexander Larsson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: FC2Blocker
TreeView+ depends on / blocked
 
Reported: 2004-03-31 12:42 UTC by Kaj J. Niemi
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-04-06 14:35:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.



Note You need to log in before you can comment on or make changes to this bug.