From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Erik Hetzner Newsgroups: gmane.emacs.bugs Subject: 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-ID: <60ca0cd5.1c69fb81.c882a.6ae1@mx.google.com> References: <6026c5a7.1c69fb81.20d04.54d1@mx.google.com> <87eehkbb74.fsf@gmx.de> <60280767.1c69fb81.2aa53.b38c@mx.google.com> <874kiebtqu.fsf@gmx.de> <60295db5.1c69fb81.b419a.01e7@mx.google.com> <87pmwok5p5.fsf@gmx.de> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: multipart/mixed; boundary="Multipart_Wed_Jun_16_07:38:03_2021-1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18970"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: 46466@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 16 16:39:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltWhC-0004gq-VA for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Jun 2021 16:39:11 +0200 Original-Received: from localhost ([::1]:43860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltWhB-0000bm-Bb for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Jun 2021 10:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltWh4-0000be-GW for bug-gnu-emacs@gnu.org; Wed, 16 Jun 2021 10:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltWh4-0002ZS-6l for bug-gnu-emacs@gnu.org; Wed, 16 Jun 2021 10:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ltWh4-0005LY-22 for bug-gnu-emacs@gnu.org; Wed, 16 Jun 2021 10:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Erik Hetzner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Jun 2021 14:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46466 X-GNU-PR-Package: emacs Original-Received: via spool by 46466-submit@debbugs.gnu.org id=B46466.162385430320501 (code B ref 46466); Wed, 16 Jun 2021 14:39:02 +0000 Original-Received: (at 46466) by debbugs.gnu.org; 16 Jun 2021 14:38:23 +0000 Original-Received: from localhost ([127.0.0.1]:53159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltWgQ-0005Kb-KM for submit@debbugs.gnu.org; Wed, 16 Jun 2021 10:38:22 -0400 Original-Received: from mail-pj1-f45.google.com ([209.85.216.45]:51726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltWgO-0005KK-HF for 46466@debbugs.gnu.org; Wed, 16 Jun 2021 10:38:21 -0400 Original-Received: by mail-pj1-f45.google.com with SMTP id k5so1852208pjj.1 for <46466@debbugs.gnu.org>; Wed, 16 Jun 2021 07:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:sender:date:from:to:cc:subject:in-reply-to:references :user-agent:reply-to:mime-version; bh=kyGRT8G4g8i6joyJ1dCBcEqLbTMxucDzZaOlwsh31WI=; b=oFeey7j22wq8/lYyyRtGoyLVVFD3Hsy57d7jozNNfMRf5WEtcP1pN+B9TxURVwufHP 1Rg7zpTn59znyjgOjJFV3WoVfP2c84Zx4GSw8kS/JJYdK195/nOuCOGqlyOfcgp/uy8Z HmyPN1cwssGuPdk0plB0eNARrZW5lTkqpk7O9ZWyzkOq0TXIqJiBgeXyEd6Sql1CxzcO DY5KoKtCSZLv8BzEDBU/Mu16Zg+RQsfcpannH05CJ10lIlVSCjw0yaz+I/JLey/ZqaQG 0Uw8hD0GTa1cXJ3Pl17gi7a+n2MiJLFLmkeXBxyCSMLB8yXtlC3GqOmW78eu5x0V+A25 JPsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:sender:date:from:to:cc:subject :in-reply-to:references:user-agent:reply-to:mime-version; bh=kyGRT8G4g8i6joyJ1dCBcEqLbTMxucDzZaOlwsh31WI=; b=EbKIvdhs2AvdoRNhp/cuZbafl9vmAAmxZ39O/MpNQUWkpporI58hB26mqr90fR7URg MGdcvaS92b1YecSmXxs2+4N5bihDu/RYUnZhioq+vZoiVKO4tBWvcvvG+H8hI7QZYZ+x bvrS3BrlnYjBjtN8YxRI8onlzpDJ07Ib8fJXhwc8zQOO+VAmDyo/Dan7794FIsvlCAVr VgVDxM4ADWhy3yuKwaJRzOqPJ6rDajcaIYDpJ9xsibjqRuK/adCnqohsiR16kCaNLdas 7+9Llax6X2ai4qSXR3jOGohv1tatsaqoBFwnZ2isNTG/UzV2R2RsRj83yIPlh3AnZt22 0dTg== X-Gm-Message-State: AOAM533BpE2sPyTFugu9haFQJJZDrdGKyVATwrO22tdE6aOucvh9Zego k3goNUN0mwcEH2olCHwwaxU= X-Google-Smtp-Source: ABdhPJxG0qzcTPVH2jw95vwBu/YiKoeJu9KeVg1vTODlP88fjBNqeJfQO2VVxwTNA7PrMTO3WOnRYw== X-Received: by 2002:a17:90a:7841:: with SMTP id y1mr11118661pjl.119.1623854294587; Wed, 16 Jun 2021 07:38:14 -0700 (PDT) Original-Received: from michel.e6h.org ([76.126.215.191]) by smtp.gmail.com with ESMTPSA id r16sm2581634pfq.140.2021.06.16.07.38.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 07:38:13 -0700 (PDT) In-Reply-To: <87pmwok5p5.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:208635 Archived-At: --Multipart_Wed_Jun_16_07:38:03_2021-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Michael, On Mon, 14 Jun 2021 05:10:14 -0700, Michael Albinus wrote: >=20 > Erik Hetzner writes: >=20 > > Hi Michael, >=20 > Hi Erik, >=20 > > 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=E2=80=99ll keep exploring possib= le > > solutions for this. In the end, it might just be a suggestion in the > > manual or improvements to error reporting. >=20 > 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=E2=80=99m not sure what it is. I=E2=80=99ve 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=3D)) (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 --Multipart_Wed_Jun_16_07:38:03_2021-1 Content-Type: text/plain; type=patch; name="0001-Use-remote-shell-from-the-start-in-Tramp-ssh-method-.patch"; charset=US-ASCII Content-Disposition: attachment; filename="0001-Use-remote-shell-from-the-start-in-Tramp-ssh-method-.patch" Content-Transfer-Encoding: 7bit >From b20a16ae9001bf1f89ffb6767095dedef04f56b3 Mon Sep 17 00:00:00 2001 From: Erik Hetzner Date: Wed, 16 Jun 2021 07:23:08 -0700 Subject: [PATCH] Use remote shell from the start in Tramp ssh method (bug#46466) * lisp/net/tramp-sh.el (tramp--with-startup): Add %l to tramp-login-args for ssh tramp-method. --- lisp/net/tramp-sh.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index b613ad3f8e..921af6e7c3 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -224,7 +224,7 @@ tramp-scp-strict-file-name-checking `("ssh" (tramp-login-program "ssh") (tramp-login-args (("-l" "%u") ("-p" "%p") ("%c") - ("-e" "none") ("%h"))) + ("-e" "none") ("%h") ("%l"))) (tramp-async-args (("-q"))) (tramp-direct-async t) (tramp-remote-shell ,tramp-default-remote-shell) -- 2.30.2 --Multipart_Wed_Jun_16_07:38:03_2021-1--