[Bug 660613] Re: COMP_WORDS bad array subscript in python completion

Peter Cordes peter at cordes.ca
Mon Dec 1 05:17:04 UTC 2014


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


** Summary changed:

- COMP_WORDS bad array subscript in python completion
+ ./python completion problems

** Changed in: bash-completion (Ubuntu)
       Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/660613

Title:
  ./python completion problems

Status in bash-completion package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: bash-completion

  Get a source checkout of Python:

  bzr branch lp:python
  cd python
  ./configure && make
  ./python Lib/test[TAB]

  The following error occurs at the TAB

  % ./python Lib/testbash: COMP_WORDS: bad array subscript

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/660613/+subscriptions



More information about the foundations-bugs mailing list