all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Tino Calancha <tino.calancha@gmail.com>
Cc: 31924@debbugs.gnu.org
Subject: bug#31924: 27.0.50; tramp handler /sudo::FILE fails when /bin/sh points to zsh
Date: Wed, 16 Oct 2019 15:21:17 +0200	[thread overview]
Message-ID: <878spku8qa.fsf@gmx.de> (raw)
In-Reply-To: <alpine.LNX.2.21.99999.362.1910161135110.8664@ip-10-207-252-54.us-west-2.compute.internal> (Tino Calancha's message of "Wed, 16 Oct 2019 11:36:13 +0000 (UTC)")

Tino Calancha <tino.calancha@gmail.com> writes:

Hi Tino,

>> Then open a remote file (it's sudo'ed, isn't it?), and after the error,
>> pls send me the complete Tramp debug buffer.
>
> Sent offlist to Michael the content of the tramp debug buffers.

Thanks, this made it obvious what happened. I could reproduce it locally.

When I've fixed this bug, I've tested with the ssh method. sudo is kinda
different, I have adapted now the template for calling it.

Works for me now also with sudo. Pushed to master. Could you pls check?

When you recompile the pulled sources, you need also to regenerate
tramp-loaddefs.el. This is not performed by default, so I suggest to
apply at least

--8<---------------cut here---------------start------------->8---
make -C lisp autoloads all
--8<---------------cut here---------------end--------------->8---

Note also, that you need both these settings

--8<---------------cut here---------------start------------->8---
(setq tramp-encoding-shell "/usr/bin/zsh")
(add-to-list
 'tramp-connection-properties '("^/sudo:" "remote-shell" "/usr/bin/zsh"))
--8<---------------cut here---------------end--------------->8---

Of course, you could apply any regexp instead of "^/sudo:". If you take
nil instead, "/usr/bin/zsh" would run on all your remote hosts.

Best regards, Michael.





  reply	other threads:[~2019-10-16 13:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-21  9:09 bug#31924: 27.0.50; tramp handler /sudo::FILE fails when /bin/sh points to zsh Tino Calancha
2018-06-21 11:05 ` Michael Albinus
2018-06-24  7:07   ` Tino Calancha
2018-06-24  7:15     ` Tino Calancha
2018-06-24 10:33     ` Michael Albinus
2018-06-25  1:36       ` Tino Calancha
2018-06-25 12:54         ` Michael Albinus
2019-10-09 11:00           ` Michael Albinus
2019-10-16 10:41             ` Tino Calancha
2019-10-16 11:01               ` Michael Albinus
2019-10-16 11:36                 ` Tino Calancha
2019-10-16 13:21                   ` Michael Albinus [this message]
2019-10-17 15:24                     ` Tino Calancha
2019-10-17 16:24                       ` Michael Albinus
2018-06-25 15:22         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878spku8qa.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=31924@debbugs.gnu.org \
    --cc=tino.calancha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.