Schönes Wetter Schönes Gefühl <omer...@hotmail.de> writes:

Hi,

> I've tried adding the recommended lines to ~/.profile but there's no
> change in situation. Anyway, that same problem happens in another Mac
> mini computer on which no iTerm2  installed, i.e. the problem must be
> related to the core OSX.

Finally, I've found the time to check your traces, again. In
<https://www.dropbox.com/s/egvz6f05ftgegje/TRAMP-fail-verbose-10.txt?dl=0>,
the last sent command is

12:10:09.591093 tramp-send-command (6) # set +o vi +o emacs

And it returns

12:10:09.645096 tramp-accept-process-output (10) # *tramp/plink macm...@g4.ev* 
run *tramp/plink macm...@g4.ev*
///38be31d77e4defe1824febc0ae885f7b#$///38be31d77e4defe1824febc0ae885f7b#$

which is the expected prompt twice. Well, this might be due to the
previous command

12:10:09.535090 tramp-send-command (6) # echo foo ; echo bar

Double-prompt problem, which I thought it wass solved for a long time. Hmm.

Could you try the following patch? It is created on the development
version of tramp-sh.el, line numbers might vary.

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/tramp-sh.el b/lisp/tramp-sh.el
index f619ac30..0cdf42de 100644
--- a/lisp/tramp-sh.el
+++ b/lisp/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)))
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to