Description of problem: Run subscription-manager with unknow command. It print help page and exit with zero exit code. While I would assume non zero exit code. Version-Release number of selected component (if applicable): subscription-manager-1.1.3-1.fc17.x86_64 How reproducible: deterministc Steps to Reproduce: 1. run "subscription-manager foo" 2. run "echo $?" Actual results: 0 Expected results: 1
https://github.com/candlepin/subscription-manager/pull/466
commit d6cb812efcb35ba547ba595e3a39f14064ea4b72 Author: Bryan Kearney <bkearney> Date: Thu Dec 20 13:32:50 2012 -0500 873601: Return a non zero code if subscription manager is run with an incorrect command name
Fixed in the 1.8.2 version of subscription-manager or python-rhsm
*** Bug 906124 has been marked as a duplicate of this bug. ***
*** Bug 908662 has been marked as a duplicate of this bug. ***
Verifying version [root@rhel7 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 0.7.24-1 subscription-manager: 1.8.2-1.el7 python-rhsm: 1.8.2-1.el7 [root@rhel7 ~]# subscription-manager foo Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help] [root@rhel7 ~]# echo $? 1 Marking verified!!
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1332.html