diff --git a/lisp/shell.el b/lisp/shell.el index 62de5be817..4339e8c0a3 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -759,7 +759,8 @@ shell (file-local-name (expand-file-name (read-file-name "Remote shell path: " default-directory - shell-file-name t shell-file-name))))) + shell-file-name t shell-file-name + #'file-remote-p))))) ;; Rain or shine, BUFFER must be current by now. (unless (comint-check-proc buffer)