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

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 Abdulaziz Jan 31 '12 at 19:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.