GNU bug report logs - #31924
27.0.50; tramp handler /sudo::FILE fails when /bin/sh points to zsh

Previous Next

Package: emacs;

Reported by: Tino Calancha <tino.calancha <at> gmail.com>

Date: Thu, 21 Jun 2018 09:11:01 UTC

Severity: normal

Found in version 27.0.50

Fixed in version 27.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Tino Calancha <tino.calancha <at> gmail.com>
Cc: 31924 <at> debbugs.gnu.org
Subject: bug#31924: 27.0.50; tramp handler /sudo::FILE fails when /bin/sh points to zsh
Date: Thu, 21 Jun 2018 13:05:13 +0200
Tino Calancha <tino.calancha <at> gmail.com> 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 root <at> calancha-pc.dy.bbexcite.jp* 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.




This bug report was last modified 5 years and 211 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.