Re: Tramp on Windows connects to Linux but not to OSX

2018-03-15 Thread Michael Albinus
Michael Albinus  writes:

Hi,

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

FTR, I've committed the patch to the Tramp repository. Will be available
with the next Tramp versions.

The upcoming Emacs 26.1 won't contain this patch, because it is frozen;
only fixing of regression errors is possible. So the patch will go into
Emacs 26.2, once development for this has started.

Best regards, Michael.

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


Re: Tramp on Windows connects to Linux but not to OSX

2018-03-13 Thread Michael Albinus
Schönes Wetter Schönes Gefühl  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
,
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


Re: Tramp on Windows connects to Linux but not to OSX

2018-02-07 Thread Michael Albinus
Schönes Wetter Schönes Gefühl  writes:

Hi Schönes Wetter Schönes Gefühl :-)

> Using Emacs-25.2.1 on Windows XP and 7, I try to connect to my Mac
> mini (OSX 10.7.4 Lion and 10.5.8 Leopard) using Tramp & plink method.
> After I enter the password, it hangs on with the "Found remote shell
> prompt..." message. The shell on OSX is plain old bash with no fancy
> decoration and the sshd is the default one at /usr/sbin. In both Macs,
> in addition to the default Terminal.app iTerm2 Terminal app is
> installed. If I try to connect to OSX using solely the plink on the
> CMD or MSYS shell, it connects flawlessly.

Well, reading the Tramp traces does not show too much,
unfortunately. But you made a point with iTerm2, see the Tramp manual,
chapter Frequently Asked Questions:

  A similar problem exist with the iTerm2 shell integration,
  which sends proprietary escape codes when starting a shell.
  This can be suppressed by changing the respective integration
  snippet in your ‘~/.profile’ like this:

   [ $TERM = "dumb" ] || \
   test -e "${HOME}/.iterm2_shell_integration.bash" && \
   source "${HOME}/.iterm2_shell_integration.bash"

Best regards, Michael.

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