emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] feature/gnus-select c6e52fa 088/218: Improve robustness in


From: Andrew G Cohen
Subject: [Emacs-diffs] feature/gnus-select c6e52fa 088/218: Improve robustness in tramp-sh.el
Date: Fri, 14 Dec 2018 03:35:07 -0500 (EST)

branch: feature/gnus-select
commit c6e52fa31e1f55634bab524a3702f6f1913fd134
Author: Michael Albinus <address@hidden>
Commit: Andrew G Cohen <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]