etelpmoc.sh needs to export its variables

Bug #1969522 reported by John Lenton
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Confirmed
Undecided
Unassigned

Bug Description

As discussed in the forum,

https://forum.snapcraft.io/t/bash-completion-not-working-at-all-what-am-i-missing/29431/9?u=chipaca

the tab completion de-serialier, etelpmoc.sh, needs to "export" the variables so that commands executed by the completion function (when using -F) or the command itself (when using -C) has access to them.

This means simply adding 'export' to all the variable declarations as they are popped off of $@ starting from COMP_TYPE down to COMP_WORDS.

Zygmunt Krynicki (zyga)
Changed in snapd:
status: New → Confirmed
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.