GNU bug report logs -
#31924
27.0.50; tramp handler /sudo::FILE fails when /bin/sh points to zsh
Previous Next
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
Tino Calancha <tino.calancha <at> 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.
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.