Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 82460

Summary: rpm should exit with a postive return code when usage prints
Product: Red Hat Enterprise Linux 2.1 Reporter: James Olin Oden <james.oden>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-22 14:01:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description James Olin Oden 2003-01-22 13:50:50 UTC
Description of problem:
If you run rpm with an invalid command line rpm returns with an exit code
0 signifying all was well, when in fact all was not well.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.  Run:

      rpm qa
2.  Type:

      echo $?

Actual results:
rpm prints the usage, and the echo the exit code prints 0.

Expected results:
rpm prints usage and exit code was greater than zero.

Additional info:

Comment 1 Jeff Johnson 2003-01-22 14:01:00 UTC
Already fixed in CVS, rpm-4.2-0.59 when built.