]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve robustness in tramp-sh.el
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 15 Mar 2018 15:11:14 +0000 (16:11 +0100)
committerAndrew G Cohen <cohen@andy.bu.edu>
Tue, 11 Dec 2018 06:17:30 +0000 (14:17 +0800)
* 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

index f619ac30633a62dfefe97afaea44603f52e070c2..0cdf42de68a24a6d794d8fa043b779c3229f7672 100644 (file)
@@ -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)))