2017-07-27 18:33 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003953Kali Linux[All Projects] Kali Package Improvementpublic2017-04-27 19:32
Reporterkawaxi 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
Product Version2016.2 
Target VersionFixed in Version 
Summary0003953: Bash-completion not working correctly after Upgrading kali VM
DescriptionIf you download VM image bash-completion will work correctly, but after upgrading bash-completion will stop working correctly when using openvpn.


Re-installing bash-completion wont fix the problem.
Steps To ReproduceUpgrade the system
get a vpn file
openvpn l tab

nothing will happen.
Additional InformationUse set -x for debugging

Debug on a vm machine with the issue gives.

openvpn la+ local compfile=./completions
+ [[ /usr/share/bash-completion/bash_completion == */* ]]
+ compfile=/usr/share/bash-completion/completions
+ compfile+=/openvpn
+ [[ -f /usr/share/bash-completion/completions/openvpn ]]
+ . /usr/share/bash-completion/completions/openvpn
+ return 124

While Debugging on a machine without the issue gives:

openvpn la+ local compfile=./completions
+ [[ /usr/share/bash-completion/bash_completion == */* ]]
+ compfile=/usr/share/bash-completion/completions
+ compfile+=/openvpn
+ [[ -f /usr/share/bash-completion/completions/openvpn ]]
+ complete -F _minimal openvpn
+ return 124
+ local cur prev words cword split
+ _init_completion -s
+ local exclude= flag outx errx inx OPTIND=1
+ getopts n:e:o:i:s flag -s
+ case $flag in
+ split=false
+ exclude+==
+ getopts n:e:o:i:s flag -s
+ COMPREPLY=()
+ local 'redir=@(?([0-9])<|?([0-9&])>?(>)|>&)'
+ _get_comp_words_by_ref -n '=<>&' cur prev words cword
+ local exclude flag i OPTIND=1
+ words=()
+ local cur cword words
+ upargs=()
+ upvars=()
+ local upargs upvars vcur vcword vprev vwords
+ getopts c:i:n:p:w: flag -n '=<>&' cur prev words cword
+ case $flag in
+ exclude='=<>&'
+ getopts c:i:n:p:w: flag -n '=<>&' cur prev words cword
+ [[ 6 -ge 3 ]]
+ case ${!OPTIND} in
+ vcur=cur
...........

It appears openvpn doesn't have an assign function

# complete -p openvpn
bash: complete: openvpn: no completion specification

while doing the same on a working VM will give the following:
complete -F _minimal openvpn

it seems doing complete -F _minimal openvpn fixes the problem but only on the current session, it's not permanently



Attached Files

-Relationships
+Relationships

-Notes

~0006579

kawaxi (reporter)

Same goes for python and other apps..... bash-completion won't work.

~0006591

kawaxi (reporter)

problem solved with 2017.1 upgrade

you may close this bug ticket.

~0006599

kawaxi (reporter)

Actually after doing several tests... the problem remains the same.
+Notes

-Issue History
Date Modified Username Field Change
2017-04-08 18:52 kawaxi New Issue
2017-04-12 02:50 kawaxi Note Added: 0006579
2017-04-26 00:50 kawaxi Note Added: 0006591
2017-04-27 19:32 kawaxi Note Added: 0006599
+Issue History