/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
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