This problem seems to be because of a change in the file /etc/bash_completion
The change is in almost all completion definitions from:
"cur=${COMP_WORDS[COMP_CWORD]}"
to
"cur=`_get_cword`"
Replacing the /etc/bash_completion with the one from gutsy fixes this for me, 
and the problem that the fix is supposed to address is something that has never 
bothered me:
# Get the word to complete
# This is nicer than ${COMP_WORDS[$COMP_CWORD]}, since it handles cases
# where the user is completing in the middle of a word.
# (For example, if the line is "ls foobar",
# and the cursor is here -------->   ^
# it will complete just "foo", not "foobar", which is what the user wants.)

-- 
Hardy regressions [bash-completion]
https://bugs.launchpad.net/bugs/194860
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to