Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

When I'm specifying arguments to the mv or cp commands at the command line and I hit tab to autocomplete the argument, it lists the argument without special characters escaped. For instance, it lists ajax-loader(1).gif literally when it should list it as ajax-loader\(1\).gif

Autocompleted arguments to the cd command are listed correctly though. I don't know what's going on. I'd appreciate any help / insight.

share|improve this question
Weird... ive tested it here (using touch "ajax-loader(1).gif" first), and autocomplete works correctly for both mv and cp. Are you sure you're in the right directory? Have you tested if ls autocomplete for that file is working fine? – MestreLion Aug 31 '11 at 7:16
up vote 2 down vote accepted

You may want to check this out because I had the same problem and modifying /etc/bash_completion did solve it.

share|improve this answer
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – RolandiXor Dec 8 '11 at 15:26
You are a genius. Thank you. – James Dec 16 '11 at 10:29

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.