These are the files and snippets of files that I have found to be of interest for this problem. Note that I am running Ubuntu 10.04
You might be able to figure out what the problem is from my configuration files. Otherwise, maybe consider posting your corresponding configuration.
last part of ~/.bashrc
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
40% down the page in /etc/bash.bashrc
(Do you have this portion commented out too?)
# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
I found these articles to be of interest:
I'll have to do some more research... but this is what I got so far.
try running this in the terminal and then see if you still have the problem:
Edit: found that tab-completion is handled by /etc/bash_completion. Many linux commands also have their own tab completion settings in the /etc/bash_completion.d/ directory.
Other people have also had this problem:
This could be a bug in your version of bash. So now the real question is... What version of bash do you have?
Just so the solution is easy to find for others that have this issue:
"It may be an issue with the /etc/bash_completion script. Try reinstalling the bash_completion package. Does it still have the problem? – W_Whalley"