Bug 1004341 - subscription-manager-gui does not bash complete its options
subscription-manager-gui does not bash complete its options
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager (Show other bugs)
Unspecified Unspecified
unspecified Severity low
: rc
: ---
Assigned To: Carter Kozak
John Sefler
Depends On:
Blocks: rhsm-rhel65
  Show dependency treegraph
Reported: 2013-09-04 08:53 EDT by John Sefler
Modified: 2013-11-21 16:28 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Feature: Add bash completion for subscription-manager-gui options. Reason: Better usability. Result (if any):
Story Points: ---
Clone Of:
Last Closed: 2013-11-21 16:28:25 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description John Sefler 2013-09-04 08:53:41 EDT
Description of problem:

[root@jsefler-6 ~]# subscription-manager-gui --help
Usage: subscription-manager-gui [OPTIONS]

  -h, --help  show this help message and exit
  --register  launches the registration dialog on startup

The options above do not bash complete when I type:
[root@jsefler-6 ~]# subscription-manager-gui -<TAB>TAB>

Expected: -h  --help  --register

Version-Release number of selected component (if applicable):
[root@jsefler-6 ~]# rpm -q subscription-manager-gui
Comment 1 Carter Kozak 2013-09-11 13:47:37 EDT
commit e64c910cec786ae03f94226cfbdaf5081f46e9a6
Author: ckozak <ckozak@redhat.com>
Date:   Wed Sep 4 09:30:22 2013 -0400

    1004341: add gui completion
Comment 3 John Sefler 2013-09-13 14:40:02 EDT
Testing Version...
[root@jsefler-6 ~]# rpm -q subscription-manager bash-completion

[root@jsefler-6 ~]# subscription-manager-gui -<TAB><TAB>
-h          --help      --register  
[root@jsefler-6 ~]# subscription-manager-gui --reg<TAB><TAB>

BANG!  Instead of completing "--register" it resets to "-"

Moving back to ASSIGNED/FailedQA
Comment 4 Carter Kozak 2013-09-25 10:21:11 EDT
commit 7fc4b0314f4db72a9540abbecc9447eeb717f634
Author: ckozak <ckozak@redhat.com>
Date:   Thu Sep 19 16:49:23 2013 -0400

    1004341: gui completion no longer resets
Comment 5 Bryan Kearney 2013-09-26 14:02:48 EDT
fixed in subscription-manager-1.9.6-1
Comment 6 John Sefler 2013-09-27 12:34:52 EDT
(In reply to Bryan Kearney from comment #5)
> fixed in subscription-manager-1.9.6-1

Nope.  Still fails in subscription-manager-gui-1.9.7-1.el6.x86_64

Has not yet been cherry picked to RHEL6.5
Comment 8 Sharath Dwaral 2013-10-07 20:18:16 EDT

Tested on stage

# subscription-manager version 
server type: Red Hat Subscription Management
subscription management server: Unknown
subscription-manager: 1.9.9-1.el6
python-rhsm: 1.9.6-1.el6

# subscription-manager-gui -<TAB><TAB>
-h          --help      --register  

[root@dhcp129-24 ~]# subscription-manager-gui --<TAB><TAB>
--help      --register

Comment 9 errata-xmlrpc 2013-11-21 16:28:25 EST
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.


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