Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have upgraded my Ubuntu to 10.04 and I am facing this problem of COMP_WORDS bad array subscript when I press TAB for certain completion. I thought, it is a bug with bash-completion package and I purged it. But even after that, I still face this. If it is a bug with bash package, how I can resolve it?


It is difficult for a developer to live with this bug in the system.

share|improve this question

2 Answers 2

See if this helps How to: Fix the tab auto-complete problem in Ubuntu 10.04

share|improve this answer
That is just moving the system .bashrc to your home directory. It may not help. –  Senthil Kumaran Nov 10 '10 at 6:41
@senthil But does it help in your case? If you do this, back up your existing .bashrc first. This copies over a system default .bashrc, which will wipe out any changes you have. –  belacq Feb 15 '11 at 4:10
Nope, it did not help. I had to uninstall bash-complete package. –  Senthil Kumaran Feb 15 '11 at 4:17
@senthil -- Hmm, that's too bad. But the uninstall fixed it satisfactorily? I was about to recommend looking into the system settings too, e.g., /etc/profile,/etc/bash.bashrc , /etc/profile.d/bash_completion.sh –  belacq Feb 15 '11 at 4:31

A quick workaround could be using another shell like fish.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.