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   
Whiteboard:
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:
Embargoed:

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):
4.0.4-7x.20

How reproducible:
Always

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:
None.

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