emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d6e04a6: Improve robustness in tramp-sh.el


From: Michael Albinus
Subject: [Emacs-diffs] master d6e04a6: Improve robustness in tramp-sh.el
Date: Thu, 15 Mar 2018 11:11:22 -0400 (EDT)

branch: master
commit d6e04a6d1c3f73a62c1001674a9837cac7715546
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    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 f619ac3..0cdf42d 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]