2018-06-17 23:51 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003953Kali Linux[All Projects] Kali Package Improvementpublic2018-02-21 09:52
Assigned To 
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
+ 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




kawaxi (reporter)

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


kawaxi (reporter)

problem solved with 2017.1 upgrade

you may close this bug ticket.


kawaxi (reporter)

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


g0tmi1k (administrator)

Due to the age of the OS (Kali Moto [v1], Kali Safi [v2], Kali Rolling 2016.x/2017.1), these legacy versions are no longer supported.
We will be closing this ticket due to inactivity.

Please could you see if you are able to replicate this issue with the latest version of Kali Linux - https://www.kali.org/downloads/)?

If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing,and also give information about your setup?
For more information, please read: https://kali.training/topic/filing-a-good-bug-report/

-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
2018-02-21 09:52 g0tmi1k Note Added: 0008772
2018-02-21 09:52 g0tmi1k Status new => closed
+Issue History