From d6e04a6d1c3f73a62c1001674a9837cac7715546 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 15 Mar 2018 16:11:14 +0100 Subject: [PATCH] Improve robustness in tramp-sh.el * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): Wrap both echo calls in parentheses, in order to avoid double prompt. --- lisp/net/tramp-sh.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index f619ac30633..0cdf42de68a 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -4175,7 +4175,7 @@ process to set up. VEC specifies the connection." cs-encode (coding-system-change-eol-conversion cs-encode (if (string-match "^Darwin" uname) 'mac 'unix))) - (tramp-send-command vec "echo foo ; echo bar" t) + (tramp-send-command vec "(echo foo ; echo bar)" t) (goto-char (point-min)) (when (search-forward "\r" nil t) (setq cs-decode (coding-system-change-eol-conversion cs-decode 'dos))) -- 2.39.2