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.