Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

CentOS:

curl -Sso ~/Des[TAB]

autocompletes to:

curl -Sso ~/Desktop/

Ubuntu:

curl -Sso ~/Des[TAB]

does NOTHING.

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 stackoverflow.com Jan 3 '13 at 21:39

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

    
2nd google match bugs.launchpad.net/ubuntu/+source/acroread/+bug/769866 - 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

1 Answer 1

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
  fi
fi
share|improve this answer

Your Answer

 
discard

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.