Comment 6 for bug 660613

Revision history for this message
Peter Cordes (peter-cordes) wrote : Re: COMP_WORDS bad array subscript in python completion

There's something fishy going on,

/usr/bin/python /etc/ba[TAB] => prints a single completion, but doesn't apply it.
bash_completion.d/

python /etc/ba[TAB] => /etc/bash_completion.d/

 I think when testing this before, I had my completion dynamic loading messed up, and wasn't getting /usr/share/bash-completion/completions/python

Turns out keeping an unmodified copy of what Ubuntu ships isn't enough, you need a symlink to /usr/share/bash-completion/completions in the directory with it, because it cares about where it lives. Checking other bugs I closed recently in case I tested improperly... xD