Subject: Re: bug#31924: 27.0.50; tramp handler /sudo::FILE fails when /bin/sh points to zsh

From: Michael Albinus <[email-masked]>
Date: Thu, 21 Jun 2018 13:05:13 +0200

Tino Calancha <[email-masked]> writes:

Hi Tino,

thanks for the traces. Tramp doesn't run too much. First, it invokes the
local shell:

> 17:57:38.934983 tramp-maybe-open-connection (6) # /bin/sh -i

And this returns a nifty prompt:

> 17:57:38.936893 tramp-accept-process-output (10) # *tramp/sudo [email-masked]* run t
> %                                                                               #$ [?2004h

That's it. According to
<https://emacs.stackexchange.com/questions/19848/weird-characters-in-shell-mode-with-zsh>,
"^[[?2004h" is good for bracketed paste mode. This must be disabled as
well, the reference I've quoted recommends "unset
zle_bracketed_paste". As said, I have no idea how this plays together
with what is already recommended for zsh in the Tramp manual.

Best regards, Michael.