Bash completion misconfigured on CentOS 7

Bug #1833043 reported by Craig Scott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Undecided
Maciej Borzecki

Bug Description

I am testing out the bash completion for the cmake snap (still unlisted while I work through the teething problems). I've been following the instructions here to investigate:

    https://forum.snapcraft.io/t/debugging-tab-completion/4198

The bash completion works fine on Ubuntu 18, but testing the same release of the cmake package on CentOS 7 results in completion not working and leaving the shell in a strange state. To demonstrate the problem, I'm using the following initial text on the command line:

    cmake -G Ni

This should complete to "cmake -G Ninja", but on CentOS I'm seeing it appear to do nothing. So I followed the above post's advice and opened a "bash -x" shell. The following snippets from the subsequent investigations appears to show the problem:

    [craig@centos-7 selinux]$ snap run --command=complete cmake 9 9 11 2 " " 'cmake -G Ni' cmake -G Ni
    + snap run --command=complete cmake 9 9 11 2 ' ' 'cmake -G Ni' cmake -G Ni
    /bin/bash: /usr/lib/snapd/etelpmoc.sh: No such file or directory
    ++ printf '\033]0;%s@%s:%s\007' craig centos-7 '~/Projects/selinux'

    [craig@centos-7 selinux]$ locate etelpmoc.sh
    + locate etelpmoc.sh
    /usr/libexec/snapd/etelpmoc.sh
    /var/lib/snapd/snap/core/6964/usr/lib/snapd/etelpmoc.sh

On CentOS, the path to etelpmoc.sh appears to be under /usr/libexec rather than /usr/lib.

The snapd RPM is version 2.39.1

Changed in snapd:
assignee: nobody → Maciej Borzecki (maciek-borzecki)
status: New → Confirmed
Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :
Changed in snapd:
status: Confirmed → In Progress
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

The referenced pull request was merged and snapd was released since. I'm marking this as fix released.

Changed in snapd:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.