Super User is a question and answer site for computer enthusiasts and power users. 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

I use GNU Emacs on Windows and Cygwin as my shell. If I create a Cygwin shell subprocess with M-x shell, I get a proper bash prompt. If I type this:

cd ~/My<tab>

it tab-completes to

cd ~/My Documents/

which is correct in Emacs/Tramp, but useless in the Cygwin bash shell subprocess, since the space has to be escaped with a backslash.

How do I get this tab-completion to automatically insert a backslash?

share|improve this question
Do you have something weird in your /etc/bash_completion.d/? Also does this solves your problem? – Ammar Alammar Jan 31 '12 at 19:49

You must log in to answer this question.

Browse other questions tagged .