Bug 82460 - rpm should exit with a postive return code when usage prints
rpm should exit with a postive return code when usage prints
Status: CLOSED RAWHIDE
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: rpm (Show other bugs)
2.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-22 08:50 EST by James Olin Oden
Modified: 2007-11-30 17:06 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-22 09:01:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description James Olin Oden 2003-01-22 08:50:50 EST
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 09:01:00 EST
Already fixed in CVS, rpm-4.2-0.59 when built.

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