GNU bug report logs - #46466
28.0.50; Tramp hangs with bad prompt even when using /bin/sh

Previous Next

Package: emacs;

Reported by: Erik Hetzner <egh <at> e6h.org>

Date: Fri, 12 Feb 2021 18:16:01 UTC

Severity: wishlist

Tags: notabug

Found in version 28.0.50

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46466 in the body.
You can then email your comments to 46466 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#46466; Package emacs. (Fri, 12 Feb 2021 18:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Erik Hetzner <egh <at> e6h.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 12 Feb 2021 18:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Erik Hetzner <egh <at> e6h.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh
Date: Fri, 12 Feb 2021 10:14:49 -0800
Hello,

1. Create a new user: `adduser test`
2. `sudo su test` and ensure that home directory is completely empty
3. `echo PS1=badprompt > .bash_profile
4. Switch back to main user
5. Start emacs with emacs -q
6. C-x C-f /ssh:test <at> localhost:

Expected result: dired for test user home dir.

Actual result: tramp hangs.

This kind of issue is well documented on the internet (stackexchange,
etc.) but I haven't seen a bug for it.

As I understand it, because `tramp-default-remote-shell' is set to
/bin/sh, tramp should ignore `.bash_profile`. When I look at running
shells, all I see is /bin/sh, so it's not clear to me where/why/how
/bin/bash is being invoked.

Thank you!

best, Erik Hetzner

In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
 of 2021-02-10 built on lcy01-amd64-026
Repository revision: 4fba79feee58e074d112bb47467913f9aec089c7
Repository branch: feature/native-comp
Windowing system distributor 'The X.Org Foundation', version 11.0.12009000
System Description: Ubuntu 20.04.2 LTS

Configured using:
 'configure --prefix=/snap/emacs/current/usr --with-x-toolkit=gtk3
 --without-xaw3d --with-modules --with-cairo --with-nativecomp
 'CFLAGS=-isystem/build/emacs/parts/emacs/install/usr/include
 -isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu
 -O2' 'CPPFLAGS=-isystem/build/emacs/parts/emacs/install/usr/include
 -isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu'
 'LDFLAGS=-L/build/emacs/parts/emacs/install/lib
 -L/build/emacs/parts/emacs/install/usr/lib
 -L/build/emacs/parts/emacs/install/lib/x86_64-linux-gnu
 -L/build/emacs/parts/emacs/install/usr/lib/x86_64-linux-gnu''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB

Important settings:
  value of $LC_MONETARY: en_US.UTF-8
  value of $LC_NUMERIC: en_US.UTF-8
  value of $LC_TIME: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail
rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-print tramp-adb
tramp-archive tramp-ftp tramp-gvfs zeroconf url-util url-parse url-vars
dbus xml thingatpt help-fns radix-tree help-mode easymenu tramp-cmds
tramp-cache tramp-sh tramp tramp-loaddefs trampver tramp-integration
files-x tramp-compat shell pcomplete comint ansi-color ring parse-time
iso8601 time-date ls-lisp format-spec auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs cl-loaddefs cl-lib password-cache json
subr-x map seq byte-opt gv bytecomp byte-compile cconv iso-transl
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core term/tty-colors frame minibuffer cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face pcase macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo move-toolbar gtk x-toolkit x multi-tty make-network-process
nativecomp emacs)

Memory information:
((conses 16 104276 7827)
 (symbols 48 9051 0)
 (strings 32 31208 3140)
 (string-bytes 1 1013359)
 (vectors 16 16649)
 (vector-slots 8 350770 9051)
 (floats 8 37 235)
 (intervals 56 362 0)
 (buffers 984 13))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46466; Package emacs. (Sat, 13 Feb 2021 08:55:01 GMT) Full text and rfc822 format available.

Message #8 received at 46466 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Erik Hetzner <egh <at> e6h.org>
Cc: 46466 <at> debbugs.gnu.org
Subject: Re: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using
 /bin/sh
Date: Sat, 13 Feb 2021 09:53:35 +0100
Erik Hetzner <egh <at> e6h.org> writes:

> Hello,

Hi Erik,

> 1. Create a new user: `adduser test`
> 2. `sudo su test` and ensure that home directory is completely empty
> 3. `echo PS1=badprompt > .bash_profile
> 4. Switch back to main user
> 5. Start emacs with emacs -q
> 6. C-x C-f /ssh:test <at> localhost:
>
> Expected result: dired for test user home dir.
>
> Actual result: tramp hangs.
>
> This kind of issue is well documented on the internet (stackexchange,
> etc.) but I haven't seen a bug for it.
>
> As I understand it, because `tramp-default-remote-shell' is set to
> /bin/sh, tramp should ignore `.bash_profile`. When I look at running
> shells, all I see is /bin/sh, so it's not clear to me where/why/how
> /bin/bash is being invoked.

What is /bin/sh, both locally and remote? In my case, running Fedora 33,
I see

--8<---------------cut here---------------start------------->8---
# ls -l /bin/sh
lrwxrwxrwx. 1 root root 4 Jul 27  2020 /bin/sh -> bash
--8<---------------cut here---------------end--------------->8---

> Thank you!
>
> best, Erik Hetzner

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46466; Package emacs. (Sat, 13 Feb 2021 17:09:02 GMT) Full text and rfc822 format available.

Message #11 received at 46466 <at> debbugs.gnu.org (full text, mbox):

From: Erik Hetzner <egh <at> e6h.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 46466 <at> debbugs.gnu.org
Subject: Re: bug#46466: 28.0.50;
 Tramp hangs with bad prompt even when using /bin/sh
Date: Sat, 13 Feb 2021 09:07:50 -0800
Hi Michael,

On Sat, 13 Feb 2021 00:53:35 -0800,
Michael Albinus <michael.albinus <at> gmx.de> wrote:
> 
> […]
> 
> What is /bin/sh, both locally and remote? In my case, running Fedora 33,
> I see
> 
> --8<---------------cut here---------------start------------->8---
> # ls -l /bin/sh
> lrwxrwxrwx. 1 root root 4 Jul 27  2020 /bin/sh -> bash
> --8<---------------cut here---------------end--------------->8---

Good question, I should have mentioned that. I have tested this on
both debian and ubuntu, where /bin/sh is linked to dash

$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Dec 10 05:23 /bin/sh -> dash

As a follow up, I suspect that in some way this is expected behavior.
I see that the *sshx* connection method specifies the shell to run
when connecting, whereas the *ssh* connection method connects without
specifying a command, and therefore starts a default remote shell.

This suggests a fix which turns out to works. The behavior is fixed,
 for me, by adding `("-o" "RemoteCommand='%l'")` to the list of
`tramp-login-args' for `tramp-methods' (see below).

It is also possible to set the PS1 value directly with this remote
command, e.g. `("-o" "RemoteCommand='PS1=\"$ \" %l'")`, which might
provide even more safety against unusual prompts.

Is this a patch that would be welcome? It would fix cases where users
had more elaborate prompts in their default shell and where /bin/sh
was a simpler shell (debian and ubuntu, at least). Unusual prompts are
more and more popular, but users to do not usually enable them for
/bin/sh. However, it might have effects that I am not aware of.

```
(add-to-list 'tramp-methods
             `("ssh"
               (tramp-login-program        "ssh")
               (tramp-login-args           (("-l" "%u") ("-p" "%p") ("%c")
				            ("-e" "none")
                                            ("-o" "RemoteCommand='%l'") ("%h")))
               (tramp-async-args           (("-q")))
               (tramp-direct-async         t)
               (tramp-remote-shell         ,tramp-default-remote-shell)
               (tramp-remote-shell-login   ("-l"))
               (tramp-remote-shell-args    ("-c"))))
```

best, Erik




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46466; Package emacs. (Sun, 14 Feb 2021 14:38:02 GMT) Full text and rfc822 format available.

Message #14 received at 46466 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Erik Hetzner <egh <at> e6h.org>
Cc: 46466 <at> debbugs.gnu.org
Subject: Re: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using
 /bin/sh
Date: Sun, 14 Feb 2021 15:37:29 +0100
Erik Hetzner <egh <at> e6h.org> writes:

> Hi Michael,

Hi Erik,

>> What is /bin/sh, both locally and remote? In my case, running Fedora 33,
>> I see
>>
>> --8<---------------cut here---------------start------------->8---
>> # ls -l /bin/sh
>> lrwxrwxrwx. 1 root root 4 Jul 27  2020 /bin/sh -> bash
>> --8<---------------cut here---------------end--------------->8---
>
> Good question, I should have mentioned that. I have tested this on
> both debian and ubuntu, where /bin/sh is linked to dash
>
> $ ls -l /bin/sh
> lrwxrwxrwx 1 root root 4 Dec 10 05:23 /bin/sh -> dash

Hmm, this doesn't count then. You have reported, that .bash_profile was
used for user "test". What is the default shell for that user?

> As a follow up, I suspect that in some way this is expected behavior.
> I see that the *sshx* connection method specifies the shell to run
> when connecting, whereas the *ssh* connection method connects without
> specifying a command, and therefore starts a default remote shell.

"sshx" is for special cases, where the default values of "ssh" don't work.

> This suggests a fix which turns out to works. The behavior is fixed,
>  for me, by adding `("-o" "RemoteCommand='%l'")` to the list of
> `tramp-login-args' for `tramp-methods' (see below).

We cannot hijack the argument "RemoteCommand" by default. There are
several reasons.

- People might have own values for that argument. For example, on my
  QNAP NAS devices it isn't possible to use ssh out-of-the-box for
  scripting, because QNAP starts the "Console Management" program, which
  is in the way. In order to fix this, I have added for all my QNAP NAS
  devices the following line in the respective .ssh/config entries:

        RemoteCommand /bin/sh -noprofile -noediting -norc -i

- If the RemoteCommand argument is set, it isn't possible any longer to
  use direct async processes in Tramp. See (info "(tramp) Remote processes")

> It is also possible to set the PS1 value directly with this remote
> command, e.g. `("-o" "RemoteCommand='PS1=\"$ \" %l'")`, which might
> provide even more safety against unusual prompts.

Maybe, but this should be better done with the SetEnv argument.

> Is this a patch that would be welcome? It would fix cases where users
> had more elaborate prompts in their default shell and where /bin/sh
> was a simpler shell (debian and ubuntu, at least). Unusual prompts are
> more and more popular, but users to do not usually enable them for
> /bin/sh. However, it might have effects that I am not aware of.

As said, the patch cannot be applied as-is. However, I'm open for all
proposals, because this is indeed a common problem users blame Tramp about.

> best, Erik

Best regards, Michael.




Severity set to 'wishlist' from 'normal' Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Sun, 14 Feb 2021 14:39:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46466; Package emacs. (Sun, 14 Feb 2021 17:29:02 GMT) Full text and rfc822 format available.

Message #19 received at 46466 <at> debbugs.gnu.org (full text, mbox):

From: Erik Hetzner <egh <at> e6h.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 46466 <at> debbugs.gnu.org
Subject: Re: bug#46466: 28.0.50;
 Tramp hangs with bad prompt even when using /bin/sh
Date: Sun, 14 Feb 2021 09:28:20 -0800
Hi Michael,

On Sun, 14 Feb 2021 06:37:29 -0800,
Michael Albinus <michael.albinus <at> gmx.de> wrote:
> 
> […]
> 
> Hmm, this doesn't count then. You have reported, that .bash_profile was
> used for user "test". What is the default shell for that user?

Sorry, I also should have mentioned that! The default shell is bash,
which seems to be the underlying issue. tramp starts a bash shell
before execing /bin/sh.

> […]
> 
> We cannot hijack the argument "RemoteCommand" by default. There are
> several reasons.
> 
> - People might have own values for that argument. For example, on my
>   QNAP NAS devices it isn't possible to use ssh out-of-the-box for
>   scripting, because QNAP starts the "Console Management" program, which
>   is in the way. In order to fix this, I have added for all my QNAP NAS
>   devices the following line in the respective .ssh/config entries:
> 
>         RemoteCommand /bin/sh -noprofile -noediting -norc -i
> 
> - If the RemoteCommand argument is set, it isn't possible any longer to
>   use direct async processes in Tramp. See (info "(tramp) Remote processes")

I see, thanks!

> > It is also possible to set the PS1 value directly with this remote
> > command, e.g. `("-o" "RemoteCommand='PS1=\"$ \" %l'")`, which might
> > provide even more safety against unusual prompts.
> 
> Maybe, but this should be better done with the SetEnv argument.
> 
> > Is this a patch that would be welcome? It would fix cases where users
> > had more elaborate prompts in their default shell and where /bin/sh
> > was a simpler shell (debian and ubuntu, at least). Unusual prompts are
> > more and more popular, but users to do not usually enable them for
> > /bin/sh. However, it might have effects that I am not aware of.
> 
> As said, the patch cannot be applied as-is. However, I'm open for all
> proposals, because this is indeed a common problem users blame Tramp about.

Thank you so much for these explanations. Tramp is a great product and
I know that it has made a lot of accommodations to a heterogeneous
environment to make it work so well! I’ll keep exploring possible
solutions for this. In the end, it might just be a suggestion in the
manual or improvements to error reporting.

Thanks again for your help.

best, Erik




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46466; Package emacs. (Mon, 14 Jun 2021 12:11:01 GMT) Full text and rfc822 format available.

Message #22 received at 46466 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Erik Hetzner <egh <at> e6h.org>
Cc: 46466 <at> debbugs.gnu.org
Subject: Re: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using
 /bin/sh
Date: Mon, 14 Jun 2021 14:10:14 +0200
Erik Hetzner <egh <at> e6h.org> writes:

> Hi Michael,

Hi Erik,

> Thank you so much for these explanations. Tramp is a great product and
> I know that it has made a lot of accommodations to a heterogeneous
> environment to make it work so well! I’ll keep exploring possible
> solutions for this. In the end, it might just be a suggestion in the
> manual or improvements to error reporting.

This bug is still open. Is there something else I could do? Otherwise,
I'd like to close it.

> Thanks again for your help.
>
> best, Erik

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46466; Package emacs. (Wed, 16 Jun 2021 14:39:02 GMT) Full text and rfc822 format available.

Message #25 received at 46466 <at> debbugs.gnu.org (full text, mbox):

From: Erik Hetzner <egh <at> e6h.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 46466 <at> debbugs.gnu.org
Subject: Re: bug#46466: 28.0.50;
 Tramp hangs with bad prompt even when using /bin/sh
Date: Wed, 16 Jun 2021 07:38:03 -0700
[Message part 1 (text/plain, inline)]
Hi Michael,

On Mon, 14 Jun 2021 05:10:14 -0700,
Michael Albinus <michael.albinus <at> gmx.de> wrote:
> 
> Erik Hetzner <egh <at> e6h.org> writes:
> 
> > Hi Michael,
> 
> Hi Erik,
> 
> > Thank you so much for these explanations. Tramp is a great product and
> > I know that it has made a lot of accommodations to a heterogeneous
> > environment to make it work so well! I’ll keep exploring possible
> > solutions for this. In the end, it might just be a suggestion in the
> > manual or improvements to error reporting.
> 
> This bug is still open. Is there something else I could do? Otherwise,
> I'd like to close it.

Thank you for the reminder. While revisiting this issue I came across
an alternate fix: adding %l to the tramp-login-args for ssh. I suspect
there is a reason this is not a viable fix, but I’m not sure what it
is. I’ve been using it locally for a while. There is a patch below, or
here is a snippet to try locally:

(setq tramp-methods (assoc-delete-all "ssh" tramp-methods #'string=))
(add-to-list 'tramp-methods
             `("ssh"
               (tramp-login-program        "ssh")
               (tramp-login-args           (("-l" "%u") ("-p" "%p") ("%c")
        			            ("-e" "none") ("%h") ("%l")))
               (tramp-async-args           (("-q")))
               (tramp-direct-async         t)
               (tramp-remote-shell         ,tramp-default-remote-shell)
               (tramp-remote-shell-login   ("-l"))
               (tramp-remote-shell-args    ("-c")))))

best, Erik

[0001-Use-remote-shell-from-the-start-in-Tramp-ssh-method-.patch (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46466; Package emacs. (Sat, 19 Jun 2021 08:49:01 GMT) Full text and rfc822 format available.

Message #28 received at 46466 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Erik Hetzner <egh <at> e6h.org>
Cc: 46466 <at> debbugs.gnu.org
Subject: Re: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using
 /bin/sh
Date: Sat, 19 Jun 2021 10:48:37 +0200
Erik Hetzner <egh <at> e6h.org> writes:

> Hi Michael,

Hi Erik,

> Thank you for the reminder. While revisiting this issue I came across
> an alternate fix: adding %l to the tramp-login-args for ssh. I suspect
> there is a reason this is not a viable fix, but I’m not sure what it
> is.

Good that it works for you. However, it can't be applied in general. If
somebody has declared RemoteCommand in ~/.ssh/config, it will
fail. Furthermore, it will fail for direct async processes.

You might keep your local setting, or you might use the "sshx" method
instead of "ssh", which sets RemoteCommand. Does this work for you?

> best, Erik

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46466; Package emacs. (Thu, 24 Jun 2021 04:41:02 GMT) Full text and rfc822 format available.

Message #31 received at 46466 <at> debbugs.gnu.org (full text, mbox):

From: Erik Hetzner <egh <at> e6h.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 46466 <at> debbugs.gnu.org
Subject: Re: bug#46466: 28.0.50;
 Tramp hangs with bad prompt even when using /bin/sh
Date: Wed, 23 Jun 2021 21:40:01 -0700
Hi Michael,

On Sat, 19 Jun 2021 01:48:37 -0700,
Michael Albinus <michael.albinus <at> gmx.de> wrote:
> 
> Erik Hetzner <egh <at> e6h.org> writes:
> 
> > Hi Michael,
> 
> Hi Erik,
> 
> > Thank you for the reminder. While revisiting this issue I came across
> > an alternate fix: adding %l to the tramp-login-args for ssh. I suspect
> > there is a reason this is not a viable fix, but I’m not sure what it
> > is.
> 
> Good that it works for you. However, it can't be applied in general. If
> somebody has declared RemoteCommand in ~/.ssh/config, it will
> fail. Furthermore, it will fail for direct async processes.
> 
> You might keep your local setting, or you might use the "sshx" method
> instead of "ssh", which sets RemoteCommand. Does this work for you?

Thanks very much for the explanation. I couldn’t figure out if it
would be an issue with direct async.

This is a solution for me, thank you. Please do close the ticket.

I would like the documentation to be a little clearer about the fact
that the remote default shell is used in many methods (and not
/bin/sh). I will explore filing a patch for that.

Thank you for your help and for maintaining the very useful tramp!

best, Erik




Added tag(s) notabug. Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Thu, 24 Jun 2021 14:59:02 GMT) Full text and rfc822 format available.

Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Thu, 24 Jun 2021 15:20:02 GMT) Full text and rfc822 format available.

Notification sent to Erik Hetzner <egh <at> e6h.org>:
bug acknowledged by developer. (Thu, 24 Jun 2021 15:20:02 GMT) Full text and rfc822 format available.

Message #38 received at 46466-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Erik Hetzner <egh <at> e6h.org>
Cc: 46466-done <at> debbugs.gnu.org
Subject: Re: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using
 /bin/sh
Date: Thu, 24 Jun 2021 17:19:35 +0200
Erik Hetzner <egh <at> e6h.org> writes:

> Hi Michael,

Hi Erik,
 
>> You might keep your local setting, or you might use the "sshx" method
>> instead of "ssh", which sets RemoteCommand. Does this work for you?
>
> Thanks very much for the explanation. I couldn’t figure out if it
> would be an issue with direct async.
>
> This is a solution for me, thank you. Please do close the ticket.

Done. Just being curious: Did you test the "sshx" method?

> I would like the documentation to be a little clearer about the fact
> that the remote default shell is used in many methods (and not
> /bin/sh). I will explore filing a patch for that.

Appreciated. Tramp 2.5.1 is scheduled for release end of June, if your
patch arrives next days, I'll integrate it. But there's no rush, I could
integrate it also anytime later.

> Thank you for your help and for maintaining the very useful tramp!
>
> best, Erik

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 23 Jul 2021 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 278 days ago.

Previous Next


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