Bug 1247646 - dnf bash completion doesn't work properly
dnf bash completion doesn't work properly
Status: CLOSED DUPLICATE of bug 1247422
Product: Fedora
Classification: Fedora
Component: dnf-langpacks (Show other bugs)
22
x86_64 Linux
unspecified Severity high
: ---
: ---
Assigned To: Parag Nemade
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-07-28 10:09 EDT by Ferry Huberts
Modified: 2015-07-29 07:53 EDT (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-29 07:34:27 EDT
Type: Bug
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 Ferry Huberts 2015-07-28 10:09:51 EDT
Description of problem:
bash completion doesn't work properly, it doesn't complete anymore but gives options with the fragment in it.

Version-Release number of selected component (if applicable):
bash.x86_64             4.3.39-5.fc22
bash-completion.noarch  1:2.1-7.20150513git1950590.fc22

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:

# dnf cl
are         clean       enabled     langpacks:  languages   No   

# dnf clean ex
are           enabled       expire-cache  langpacks:    languages     No   

Expected results:
# dnf cl
should complete to 'dnf clean'

# dnf clean ex
shoudl complete to 'dnf clean expire-cache'

Additional info:
Comment 1 Ondrej Oprala 2015-07-29 07:30:35 EDT
Strange, this works on my end. Could you please attach for me the file "xtrace.log" after doing this in bash:

exec 3<>xtrace.log
export BASH_XTRACEFD=3
set -x
dnf clean ex<press_tab>
set +x
unset BASH_XTRACEFD


Thanks
Comment 2 Parag Nemade 2015-07-29 07:34:06 EDT
Actually its also working fine on my system since last few days since I submitted dnf-langpacks to F22 updates-testing. Also I was not aware that emitting extra print messages from dnf-langpacks will break bash completion.
Comment 3 Parag Nemade 2015-07-29 07:34:27 EDT

*** This bug has been marked as a duplicate of bug 1247422 ***
Comment 4 Ferry Huberts 2015-07-29 07:53:29 EDT
Funny enough it now works for me.
I did an update this morning.

$ dnf history info 39
Last metadata expiration check performed 1:12:06 ago on Wed Jul 29 12:40:15 2015.
Transaction ID : 39
Begin time     : Wed Jul 29 12:40:42 2015
Begin rpmdb    : 4336:036924b2d176f01e0a81e317d763d4e4e5872161
End time       :            12:42:21 2015 (99 seconds)
End rpmdb      : 4336:c610e1b9d499c8a439ba260c9645827188fb7210
User           : Ferry Huberts <ferry>
Return-Code    : Success
Command Line   : update
Transaction performed with:
    Installed     dnf-1.0.1-2.fc22.noarch     @updates
    Installed     rpm-4.12.0.1-12.fc22.x86_64 @updates
Packages Altered:
    Upgraded NetworkManager-ssh-0.9.3-0.3.20140601git9d834f2.fc22.x86_64       (unknown)
    Upgrade                     0.9.4-0.1.20150713git60f03fe.fc22.x86_64       @updates
    Upgraded NetworkManager-ssh-gnome-0.9.3-0.3.20140601git9d834f2.fc22.x86_64 (unknown)
    Upgrade                           0.9.4-0.1.20150713git60f03fe.fc22.x86_64 @updates
    Upgraded akmods-0.5.2-1.fc22.noarch                                        (unknown)
    Upgrade         0.5.3-2.fc22.noarch                                        @rpmfusion-free
    Upgraded audit-2.4.2-1.fc22.x86_64                                         (unknown)
    Upgrade        2.4.3-1.fc22.x86_64                                         @updates
    Upgraded audit-libs-2.4.2-1.fc22.i686                                      (unknown)
    Upgraded audit-libs-2.4.2-1.fc22.x86_64                                    (unknown)
    Upgrade             2.4.3-1.fc22.i686                                      @updates
    Upgrade             2.4.3-1.fc22.x86_64                                    @updates
    Upgraded audit-libs-devel-2.4.2-1.fc22.x86_64                              (unknown)
    Upgrade                   2.4.3-1.fc22.x86_64                              @updates
    Upgraded audit-libs-python-2.4.2-1.fc22.x86_64                             (unknown)
    Upgrade                    2.4.3-1.fc22.x86_64                             @updates
    Upgraded avahi-0.6.31-31.fc22.x86_64                                       @updates
    Upgrade        0.6.31-32.fc22.x86_64                                       @updates
    Upgraded avahi-autoipd-0.6.31-31.fc22.x86_64                               @updates
    Upgrade                0.6.31-32.fc22.x86_64                               @updates
    Upgraded avahi-compat-libdns_sd-0.6.31-31.fc22.x86_64                      @updates
    Upgrade                         0.6.31-32.fc22.x86_64                      @updates
    Upgraded avahi-dnsconfd-0.6.31-31.fc22.x86_64                              @updates
    Upgrade                 0.6.31-32.fc22.x86_64                              @updates
    Upgraded avahi-glib-0.6.31-31.fc22.x86_64                                  @updates
    Upgrade             0.6.31-32.fc22.x86_64                                  @updates
    Upgraded avahi-gobject-0.6.31-31.fc22.x86_64                               @updates
    Upgrade                0.6.31-32.fc22.x86_64                               @updates
    Upgraded avahi-libs-0.6.31-31.fc22.i686                                    @updates
    Upgraded avahi-libs-0.6.31-31.fc22.x86_64                                  @updates
    Upgrade             0.6.31-32.fc22.i686                                    @updates
    Upgrade             0.6.31-32.fc22.x86_64                                  @updates
    Upgraded avahi-tools-0.6.31-31.fc22.x86_64                                 @updates
    Upgrade              0.6.31-32.fc22.x86_64                                 @updates
    Upgraded avahi-ui-gtk3-0.6.31-31.fc22.x86_64                               @updates
    Upgrade                0.6.31-32.fc22.x86_64                               @updates
    Upgraded avahi-ui-tools-0.6.31-31.fc22.x86_64                              @updates
    Upgrade                 0.6.31-32.fc22.x86_64                              @updates
    Upgraded coolkey-1.1.0-26.fc22.x86_64                                      (unknown)
    Upgrade          1.1.0-27.fc22.x86_64                                      @updates
    Upgraded dnf-langpacks-0.11.1-1.fc22.noarch                                @updates
    Upgrade                0.12.0-2.fc22.noarch                                @updates
    Upgraded gnome-screensaver-3.6.1-10.fc22.x86_64                            @updates
    Upgrade                    3.6.1-11.fc22.x86_64                            @updates
    Upgraded google-chrome-stable-44.0.2403.89-1.x86_64                        @google-chrome
    Upgrade                       44.0.2403.125-1.x86_64                       @google-chrome
    Upgraded hpijs-1:3.15.6-1.fc22.x86_64                                      @updates
    Upgrade        1:3.15.7-1.fc22.x86_64                                      @updates
    Upgraded hplip-3.15.6-1.fc22.x86_64                                        @updates
    Upgrade        3.15.7-1.fc22.x86_64                                        @updates
    Upgraded hplip-common-3.15.6-1.fc22.x86_64                                 @updates
    Upgrade               3.15.7-1.fc22.x86_64                                 @updates
    Upgraded hplip-compat-libs-3.15.6-1.fc22.x86_64                            @updates
    Upgrade                    3.15.7-1.fc22.x86_64                            @updates
    Upgraded hplip-gui-3.15.6-1.fc22.x86_64                                    @updates
    Upgrade            3.15.7-1.fc22.x86_64                                    @updates
    Upgraded hplip-libs-3.15.6-1.fc22.x86_64                                   @updates
    Upgrade             3.15.7-1.fc22.x86_64                                   @updates
    Upgraded iw-3.15-3.fc22.x86_64                                             (unknown)
    Upgrade     4.1-1.fc22.x86_64                                              @updates
    Erase    kernel-4.0.6-300.fc22.x86_64                                      @updates
    Install  kernel-4.1.2-200.fc22.x86_64                                      @updates
    Erase    kernel-core-4.0.6-300.fc22.x86_64                                 @updates
    Install  kernel-core-4.1.2-200.fc22.x86_64                                 @updates
    Erase    kernel-devel-4.0.6-300.fc22.x86_64                                @updates
    Install  kernel-devel-4.1.2-200.fc22.x86_64                                @updates
    Upgraded kernel-headers-4.0.8-300.fc22.x86_64                              @updates
    Upgrade                 4.1.2-200.fc22.x86_64                              @updates
    Erase    kernel-modules-4.0.6-300.fc22.x86_64                              @updates
    Install  kernel-modules-4.1.2-200.fc22.x86_64                              @updates
    Erase    kernel-modules-extra-4.0.6-300.fc22.x86_64                        @updates
    Install  kernel-modules-extra-4.1.2-200.fc22.x86_64                        @updates
    Upgraded kernel-tools-4.0.8-300.fc22.x86_64                                @updates
    Upgrade               4.1.2-200.fc22.x86_64                                @updates
    Upgraded kernel-tools-libs-4.0.8-300.fc22.x86_64                           @updates
    Upgrade                    4.1.2-200.fc22.x86_64                           @updates
    Upgraded libidn-1.29-3.fc22.i686                                           (unknown)
    Upgraded libidn-1.29-3.fc22.x86_64                                         (unknown)
    Upgrade         1.31-1.fc22.i686                                           @updates
    Upgrade         1.31-1.fc22.x86_64                                         @updates
    Upgraded libmpg123-1.19.0-2.fc22.x86_64                                    (unknown)
    Upgrade            1.22.2-2.fc22.x86_64                                    @rpmfusion-free
    Upgraded libmpg123-devel-1.19.0-2.fc22.x86_64                              (unknown)
    Upgrade                  1.22.2-2.fc22.x86_64                              @rpmfusion-free
    Upgraded libsane-hpaio-3.15.6-1.fc22.x86_64                                @updates
    Upgrade                3.15.7-1.fc22.x86_64                                @updates
    Upgraded livecd-tools-1:22.1-1.fc22.x86_64                                 (unknown)
    Upgrade               1:22.2-1.fc22.x86_64                                 @updates
    Upgraded pam_pkcs11-0.6.8-3.fc22.x86_64                                    (unknown)
    Upgrade             0.6.8-6.fc22.x86_64                                    @updates
    Upgraded parted-3.2-5.fc22.x86_64                                          (unknown)
    Upgrade         3.2-9.fc22.x86_64                                          @updates
    Upgraded python-imgcreate-1:22.1-1.fc22.x86_64                             (unknown)
    Upgrade                   1:22.2-1.fc22.x86_64                             @updates
    Upgraded wpa_supplicant-1:2.4-3.fc22.x86_64                                @updates
    Upgrade                 1:2.4-4.fc22.x86_64                                @updates
Scriptlet output:
   1 Redirecting to /bin/systemctl start  atd.service

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