Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


curl -Sso ~/Des[TAB]

autocompletes to:

curl -Sso ~/Desktop/


curl -Sso ~/Des[TAB]


I can "fix" this by uninstalling bash-completion, but that's not a real fix.

How do I get sane behavior out of bash-completion under Ubuntu 12.10?

share|improve this question

migrated from Jan 3 '13 at 21:39

This question came from our site for professional and enthusiast programmers.

2nd google match - you can start searching from there – java_xof Jan 3 '13 at 21:38
I don't believe that is related to my problem. My shell escapes characters such as spaces while auto-completing just fine. – user1946605 Jan 3 '13 at 22:23

Uncomment the following section in /etc/bash.bashrc:

if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
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.