Bash completion misconfigured on CentOS 7
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:/
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/
++ printf '\033]0;
[craig@centos-7 selinux]$ locate etelpmoc.sh
+ locate etelpmoc.sh
/usr/
/var/
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 |
The fix is up for review: https:/ /github. com/snapcore/ snapd/pull/ 7008