bash-completion not working on core18-base classic snap
Bug #1802721 reported by
Alberto Donato
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Medium
|
Unassigned |
Bug Description
On my "sshoot" snap (sudo snap install sshoot --edge --classic), tab-completion with bash is currently not working.
I've followed steps on https:/
In step 4, when I run the complete command I get the following:
$ snap run --command=complete sshoot 9 9 7 1 " " 'sshoot ' sshoot ""
default
<output ends here>
instead of getting possible completions.
If I run commands in step 5 and manually load completion from a shell in the snap, it works.
note that "core" needs to be installed in addition to "core18" before installing this snap because of https:/
Changed in snapd: | |
status: | In Progress → Confirmed |
assignee: | John Lenton (chipaca) → nobody |
To post a comment you must log in.
So, you're hitting two or three separate bugs. The extra one is if you try this on snapd and hit the ld-so absolute symlink one :)
Getting no completion if core isn't installed is fixed by https:/ /github. com/snapcore/ snapd/pull/ 6126
which you know can be worked around by ... installing core :-)
Getting no completion with core installed is fixed by /github. com/snapcore/ snapd/pull/ 6129
https:/
we've gone over how to work around the second one on IRC, but it's: tweak your completion script to not have the function depend on $1 (I'd recommend you not call python to generate the completion script every time it's invoked, in any case).