Qball's Weblog

Natty, bash strange tab completion?

Tags Grind My Gears 

In natty the bash-completion is bit stupid. f.e. if you type
cat Docu<tab> </tab>
It will expand to:
cat Documents
instead of
cat Documents/

To fix this open ~/.bashrc and comment the following:

?View Code BASH
1
2
3
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
#    . /etc/bash_completion
#fi

And you get the expected behavior back.