How do I have Emacs complete directories with “/” instead of “\”?
The character appended to directory names when completing in shell-mode is determined by the value of the variable comint-completion-addsuffix. If the value of this variable it t, then a ‘/’ is appended to directory names. If the value of this variable is a cons pair, then the first value of the pair is appended. In 19.34, lisp\winnt.el initializes comint-completion-addsuffix to the cons pair ‘(“\\” . ” “) using shell-mode-hook. This means that, by default, a “\” is appended to directory names during completion in shell mode. To override this behavior, you need to change the value of comint-completion-addsuffix.