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.
This commit is contained in:
parent
9e73c9d038
commit
d6e04a6d1c
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue