bash autocompletion giving COMP_WORDS with &&
Bug #366446 reported by
Jesse_Adkins
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bash
Ubuntu Version : 9.04
Program Version : 3.2-5ubuntu1
Steps to reproduce :
Fire up the terminal and type the following
make &&
Now press tab like so :
make <tab> &&
(It's important that you _not_ press tab right next to &&. It has to be in the middle.)
When I do this, I get the following message
bash: COMP_CWORD]: bad array subscript
I tried doing this with a few other utilities : ls, man, apt-get, and time. Every time I got at least one or more COMP_WORD error messages. time was the only one that gave an infinite loop of COMP_WORD messages.
affects: | bash (Ubuntu) → bash-completion (Ubuntu) |
To post a comment you must log in.
additional examples:
cat<space 1><space2>|
putting your cursor on the second space and pressing tab results in:
bash: COMP_CWORD]: bad array subscript
cd<space1><space2>/
putting the cursor on the the second space and pressing tab results in:
bash: $index: substring expression < 0