From unknown Sun Jun 22 00:45:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh Resent-From: Erik Hetzner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Feb 2021 18:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 46466@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: Erik Hetzner Received: via spool by submit@debbugs.gnu.org id=B.161315371329893 (code B ref -1); Fri, 12 Feb 2021 18:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Feb 2021 18:15:13 +0000 Received: from localhost ([127.0.0.1]:32937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAcyG-0007m5-Q6 for submit@debbugs.gnu.org; Fri, 12 Feb 2021 13:15:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:37734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAcyF-0007lx-1S for submit@debbugs.gnu.org; Fri, 12 Feb 2021 13:15:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAcyD-0004Yn-3M for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2021 13:15:10 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:38648) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAcyA-0001ow-Dz for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2021 13:15:08 -0500 Received: by mail-pj1-x1030.google.com with SMTP id l18so101547pji.3 for ; Fri, 12 Feb 2021 10:15:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:sender:date:from:to:subject:reply-to:user-agent :mime-version; bh=6aoNLO4fNF6ZX46fTsL6r2x2WphbAZP21SnWJAQgAgY=; b=NO3IPZFWfuuISGn9ZbGOpYE15Q3jZ3DfisSoygi1aXJqV8bF1LwoGHjF15mSmLvJ6x gQ/DQ0RQkoFNWffNxypiRsk5ZRh3TSniWxk8cPDMbZq69v7Y6+sWcCUSB9q2xy72I/vG 94+35wM5nkm6DO7z9ZycRoItlRpMMCYR+4nmqfQBK+0AenbAbQHycFrrIUTvHmUgvNH2 UwrOn5qqyjsEjtYw6VSh3KoVInkdSomK/N7Q7UTme5iGeC2v5JY9p53sIhk/YB649AyP JE4jyScTkgOMDhqoYMoLnhXl+hsStc8z79i7NQklc3iBIslKj929DnC4uPNJ0L3P69cK kWNA== 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:subject:reply-to :user-agent:mime-version; bh=6aoNLO4fNF6ZX46fTsL6r2x2WphbAZP21SnWJAQgAgY=; b=JAQcvOvVHxKkigA6yScS5BHei2EMxPHKyABXfVYiGatoQRaEIjF9VMy8jDP8yKgVS4 qIOTy4XAB2Hl+TMNNMluYrYNumCGpLprzokO33zhMjKB+BHe1gxOxrfkje/xx0AV+BPS v8DR5cQe2ZQ31uQN4estiDnf47+koGdc/hrkKfRlPB1/lYVMc31upOjJMsAzqGMlY1ny fjyixXMXsHihs6xBRVj9uK537U1ngDqQxkt9A58jjvjM6IcRERhJyTuC8Kk0upoN6Fir dSWyySOOqg++2uj9la1MNkJ+pLSam1WSzmZKkNyoeKnRx7AsQqEqvou1sV5bMQC72Dy6 IuYw== X-Gm-Message-State: AOAM530f3cvyi0SWZaMG86kpmRz33uUg9P+OEIhIBX/2DgOlbRlYDFgk MiEQycFHHZKkRoFg27bD7sSoDhXMGWDllA== X-Google-Smtp-Source: ABdhPJz1asHn1xvIdUpU6uVcXmaevWSFsD0w+aNoGXE8oIQR3SGPRcCiK/khZmRjxWtKnQvmkKLjjw== X-Received: by 2002:a17:90a:d983:: with SMTP id d3mr3741733pjv.77.1613153704165; Fri, 12 Feb 2021 10:15:04 -0800 (PST) Received: from ehetzner-ThinkPad-T470.e6h.org ([2601:643:8800:93d:39ff:4f97:5b78:b488]) by smtp.gmail.com with ESMTPSA id q188sm9574187pfb.8.2021.02.12.10.15.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 10:15:03 -0800 (PST) Message-ID: <6026c5a7.1c69fb81.20d04.54d1@mx.google.com> Date: Fri, 12 Feb 2021 10:14:49 -0800 From: Erik Hetzner User-Agent: 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) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=ehetzner@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) 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@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)) From unknown Sun Jun 22 00:45:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Feb 2021 08:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Erik Hetzner Cc: 46466@debbugs.gnu.org Received: via spool by 46466-submit@debbugs.gnu.org id=B46466.161320644214662 (code B ref 46466); Sat, 13 Feb 2021 08:55:01 +0000 Received: (at 46466) by debbugs.gnu.org; 13 Feb 2021 08:54:02 +0000 Received: from localhost ([127.0.0.1]:33535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAqgk-0003oP-6V for submit@debbugs.gnu.org; Sat, 13 Feb 2021 03:54:02 -0500 Received: from mout.gmx.net ([212.227.17.20]:34249) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAqgf-0003ns-Tl for 46466@debbugs.gnu.org; Sat, 13 Feb 2021 03:54:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613206417; bh=nmlM4zmRoacSZceVVVlaJGSysnagFs26kE5ye4Ur+RY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=AZkwRwzd+ofx8l36zkJJJiGvxCvs5ZkRycol+P0Fv+l8aKwwMySwVQNlXvvPh972l VDAivYD9wfBAQ76dnqLeGoeBtECa0PWX9WLClRg+75XlUXqgkRMVom3wCKqTrowI9y m+TYmaWMgpjm0yEBMYqWVRlqPJn+85ciMWdBrTPE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([212.91.238.158]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MryTF-1le9cy1MI9-00nukN; Sat, 13 Feb 2021 09:53:37 +0100 From: Michael Albinus References: <6026c5a7.1c69fb81.20d04.54d1@mx.google.com> Date: Sat, 13 Feb 2021 09:53:35 +0100 In-Reply-To: <6026c5a7.1c69fb81.20d04.54d1@mx.google.com> (Erik Hetzner's message of "Fri, 12 Feb 2021 10:14:49 -0800") Message-ID: <87eehkbb74.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:2aX7gH3L1zFl9QdWq5BWvZYjPK6oZcnZZ3luYHWvjqRPPeBo3Gc WLfpEOczUwvp5Rymwkoatj5rsAXnOzOwiBIrfX9Kmd1wWKgmYk6bY2nZk7niOpzyDnH0ONT zr9VkW10900BAEGVw+HuIpDiK5E+IFjiNsD7p2t0D/kr4PBO/MLTVzvQ/Px42+2SEEvSq2H iA4EDQv2H7daYQwqgXyRg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Ir/p8EsZSq0=:oKXAGhZyCDAif5egOxrPKl jQrUDq4ElAA2xBtm+Nz5qIOVpPAay1XI0AdXRi8OmZs+KrheOZU2YxTZa4dGaCtGG97yxW75e hixuuW8Yn2etpI5kYzMrbneoaoqF+ooYDY1M+DjoDH81U1SiNdi4NRpuAYbzSxuiHt2RNwe5v EGG7UpL1mGujyZkpXOF39Znnhxrwql4WEsl6z8SFIs6YqxJOC7+kaFNct084hySsPFyyTrmFW QdHTReIoKIi4mCbGYoCQ77CGTKfjNOZ2eDdzTDouhvfKl6bWZ3jf0+d8W9m5OK1rHM6vVDjfr CgtIz3Z8VqpFIqBZK08FtQJAeXjdTdsdI7tpxhT+vepxqLim8OnSfFTg1MzcxeUngB4DV+QAt EZxBotonsiLw4vhRLv4TAXClLQO9yoJGPHMiGrlhSUjJpOTcxmfEF8K4PBlB2p9GTsr8MCSF3 CxLiAtXDOspjlnCaCaqAMLvpsLrcxG2z59jocrXtwf0Ysk1Fv+AK1W1bM54Q9V4DH5Gf9yyvn m9XF1HFZ9eiKMyw2vEtVN0JQ+aZ73Drw4g9X6EUr22Xtkdhs2BcykaEdNQfWiY0jU9+a6/yd4 UjdhUMJj0WRoT+rqbU+HJLkK61+oE+Ce/XgNaZSiMmZBJR4Q47KXQEo/v7/saUEhNhqGmXs3I RiYFYxR1LLux3Q1JkxzMTxWIZvkoddeVvKKcLlpJ4pdh4o5Vs6bn8ZBJ6X6CDIrxjWoiy7joX /mctVes+VFOV4q2flKQ/AFoIXHeEy1WFB5kIR3yzjsVpwlh90Y5ectssmZkh0hCELafmCY7UP cWBsZmXslEIJumF0HCnFZtpvxzhimSglTMyt8nwnsZ36TixnGCxgr+czS7L/+hLdhBNPLF8ip 7diAIDpJRD/TYBdg4QCw== X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Erik Hetzner 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@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. From unknown Sun Jun 22 00:45:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh Resent-From: Erik Hetzner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Feb 2021 17:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 46466@debbugs.gnu.org Reply-To: Erik Hetzner Received: via spool by 46466-submit@debbugs.gnu.org id=B46466.161323608431255 (code B ref 46466); Sat, 13 Feb 2021 17:09:02 +0000 Received: (at 46466) by debbugs.gnu.org; 13 Feb 2021 17:08:04 +0000 Received: from localhost ([127.0.0.1]:34981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAyOq-000883-K5 for submit@debbugs.gnu.org; Sat, 13 Feb 2021 12:08:04 -0500 Received: from mail-pl1-f181.google.com ([209.85.214.181]:42983) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAyOk-00087V-L0 for 46466@debbugs.gnu.org; Sat, 13 Feb 2021 12:08:03 -0500 Received: by mail-pl1-f181.google.com with SMTP id s15so1448708plr.9 for <46466@debbugs.gnu.org>; Sat, 13 Feb 2021 09:07:58 -0800 (PST) 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:content-transfer-encoding; bh=5x+YFzLknkbyBIREOjsHcA2H9+Zi4kFEYKrvv0wubOY=; b=tnoKpBsJfg7p743Rov7jcD/EfkHcsWJ8kbw53M+j0SDZA6IHzR4bdWbs9B6Jm0RfIw xPQu5T/9QrlHRl6+6vOxAXmgL99C+hWukl7VXq9bRV0EdMWSviondhL46uwFw0UCyeqA UTFdxOfs4ad1nIxOc8n8HrMNSThoi2Whw8ItxcqBBgV0TlDghtcZJ3T+nfsq+3/2zn9g qebEFKusWy7cRbkm6nrKgtR/r37NJcQg9C/Y2LbNVTanyXt/RoUwOQgvNaoZBko2wEpG t7KkzPB288YF3EEZevEtYtwVuOI+mL5fprI1R9ARmrEZLmPIdIZXQjhuI68bsDBP3Yls spmA== 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 :content-transfer-encoding; bh=5x+YFzLknkbyBIREOjsHcA2H9+Zi4kFEYKrvv0wubOY=; b=Pl+44ElEDITvuZwXYkqERONUHWtG+tmnuF9ay0+6IHEaGecCEVBDNwXUuVWLUn8PUl uQq4uACiBBp95wdNMVamwahFGOej7VZ5rU/pMGyUH5u58ZO8N9DsRHbk7vPAjZdDP++a elsa6zNw7GqRU3wWx2zmNLtqTDVrFjLsJopSaeANM6l2eaXPg+fbPON9nzxwQvA91wiq HT8h2k8EB1/J49eex05/KDq6iBoYWtexSGYQG7qrsEgplgd3Cchv0MPIMvaMjWM+hsw0 /A2h/dOykLH4YyS97SBASeMaila1mdiNq17sdq3oyGvnJX5DlvOYYht3jyL69HfOGly1 W66g== X-Gm-Message-State: AOAM531suN5BYTGKN6LlPVUbpSOFrR8Tg3U3eFs4VPZJJImC6GFfr/K0 D+dKPCnaCTa1Jlob21Cpzqo= X-Google-Smtp-Source: ABdhPJy9jvEGZUhmMi0dnDjxsA0BOPs2xXE+0FRtJ4wZ+9i7RvWs5SRtfZXUr3eo76rmv5iquC8YIg== X-Received: by 2002:a17:90a:aa8a:: with SMTP id l10mr8049562pjq.86.1613236072592; Sat, 13 Feb 2021 09:07:52 -0800 (PST) Received: from michel.e6h.org ([2601:643:8800:93d:d208:660:6a53:5389]) by smtp.gmail.com with ESMTPSA id t23sm12561418pfl.80.2021.02.13.09.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Feb 2021 09:07:51 -0800 (PST) Message-ID: <60280767.1c69fb81.2aa53.b38c@mx.google.com> Date: Sat, 13 Feb 2021 09:07:50 -0800 From: Erik Hetzner In-Reply-To: <87eehkbb74.fsf@gmx.de> References: <6026c5a7.1c69fb81.20d04.54d1@mx.google.com> <87eehkbb74.fsf@gmx.de> 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) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi Michael, On Sat, 13 Feb 2021 00:53:35 -0800, Michael Albinus wrote: >=20 > [=E2=80=A6] >=20 > What is /bin/sh, both locally and remote? In my case, running Fedora 33, > I see >=20 > --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=3D'%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=3D'PS1=3D\"$ \" %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=3D'%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 From unknown Sun Jun 22 00:45:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Feb 2021 14:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Erik Hetzner Cc: 46466@debbugs.gnu.org Received: via spool by 46466-submit@debbugs.gnu.org id=B46466.16133134725888 (code B ref 46466); Sun, 14 Feb 2021 14:38:02 +0000 Received: (at 46466) by debbugs.gnu.org; 14 Feb 2021 14:37:52 +0000 Received: from localhost ([127.0.0.1]:35665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBIX2-0001Wu-0V for submit@debbugs.gnu.org; Sun, 14 Feb 2021 09:37:52 -0500 Received: from mout.gmx.net ([212.227.15.19]:53727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBIX0-0001Wi-G2 for 46466@debbugs.gnu.org; Sun, 14 Feb 2021 09:37:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613313450; bh=ebFcK2FgZZs4tbelcoykB3A70XEP2jr3IGOdL1YCfTA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=O/8xIAJh76l0E1tPagBGWaw3f7eZFbxlLjpuzv5Xig7JKygTkiGyQFpIRXLYU03xM YatclN6QXl/U31hu5Ppa8tNSrrh87rbfNfVQgdtGltIpeleTl5gn6sgY/Z+StNni0J UJoPxmzGgihc1l4iHDQgWlT7HHnSjJtYHJAhwuhk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([212.86.41.7]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M7Jza-1lEaJi2mUe-007jdL; Sun, 14 Feb 2021 15:37:30 +0100 From: Michael Albinus References: <6026c5a7.1c69fb81.20d04.54d1@mx.google.com> <87eehkbb74.fsf@gmx.de> <60280767.1c69fb81.2aa53.b38c@mx.google.com> Date: Sun, 14 Feb 2021 15:37:29 +0100 In-Reply-To: <60280767.1c69fb81.2aa53.b38c@mx.google.com> (Erik Hetzner's message of "Sat, 13 Feb 2021 09:07:50 -0800") Message-ID: <874kiebtqu.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:33/QMOUWq7LLaq5/1OrpMHKl5/2rmkEa0gYQqyHC+i0hXBVIjF4 02Uj9+R+J34a4UWKB64uCzrZFP64Tse4WxzUyEfocv48c0O1tP+pkdLshtlSMG+hsRANgqC 7re5hpVkXsMOxTg8Uu2C9Mdh4P/iXi3BubsUM/B37skCr+PbZKWFsD2p7+8Y88Id7m0atfM /aS+T0ONPouc5F7OCs59A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:0DV9gcRSsJE=:BtN0CwcrejcpJAZKYvphif qeqj1cdSX+zM/fdXEVqtxggSL7/zaGVn3pUaFeBvpwycCxDRP9M/zMgR4zKgHabW/3jqFh9YE c7isrPGJH5LBFwDbWL+h+3qn9KCXGNj2ny4daEl/wquvnVHBUZPHX0EG7htpFJN5T5PNaDgBK HMGxjDzLuglNtlcDGqiHYDITbAWJtN89gLge2Lge6eiYv79j93pr7KFJAhcmqp0zuJSsvsD2B ptX8pD7JtKgle+IVn7FNEyHAk4ztF51muWUav0UeBjrQ5uqQxdOrmcq2XAcur4FUTWdUwxc5r khp7+rWlOpKGcTnwxL0hYidT9LT4SX3KOrwVwGsjeSWLxVuC2bBo15TH/EmGWqMT820nk24Aq LtdC/Oe673RPhVEBgzrR/tsaN2UfUeKjDHQVLZtbGlqhrIVC6Ti1ANILdJvmHKPcS1J4kDsqR dARWPU72qAhJJJbGkGxsKq8ukHBwmgp/ZXq9GdrgPFXLAuNlO+91cfZ8/hCqo3qsuSqhjx5my 0pTVhWiM2M+IMa6tb3RjPJOGQRVqO3o7Rc5ngpA1ht4p6CReP57AA4jHnzHUhRpWZTo3ajxeq pxxSjcaXCLVni4jrpu0VioQIVENySEvihzq7t8U/EMJYU1Tw05f3jWynZ3bxVDOQWgxgj/N+0 72qqGAu6psk/8sxQP18o+3Pxw+Ok3Ayy6iHigQabsNUq1OeSV31KNNMzus/918M7CZOAHbbsP 5AO2n+7avcKe70cr5rbbHWMNZHgDNVSoWDROEunkd27VCcXnyXtqTYTUVRSqm0YsJTurRYYdW KXs9RfXPSaqXWCHJzUWyJNM3pf1MkzFMendPCr6paKeoG8pa/w8Fv/JSGAmDjcFsYqtCaRP1Z viBiwoGRLTl4MUB7hCoQ== Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Erik Hetzner 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=3D'%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=3D'PS1=3D\"$ \" %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. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 14 09:38:29 2021 Received: (at control) by debbugs.gnu.org; 14 Feb 2021 14:38:29 +0000 Received: from localhost ([127.0.0.1]:35669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBIXd-0001Y8-BW for submit@debbugs.gnu.org; Sun, 14 Feb 2021 09:38:29 -0500 Received: from mout.gmx.net ([212.227.17.22]:42725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBIXb-0001Xw-JF for control@debbugs.gnu.org; Sun, 14 Feb 2021 09:38:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613313501; bh=onR5+fp5PJiiVirVIylCb7ejDsh5JuK4RwJyfXV9AiM=; h=X-UI-Sender-Class:Date:To:From:Subject; b=eZRDgWnEgCrJMz3B+EI8JN5A7fudbnKznbs++6P3djLridw35Z2H/fGTGCX0f/5oH Yuzsz5Ctb1XDLcIb4tLNziXguyOWDcMRqX9yMeicLxylvzVMe5hNaLiGXvM/C1Gs/y 7esNS/rsTRh51IbsXU6pclS+7z0OXMGMg5Q7ukFw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([212.86.41.7]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N6sit-1lx1sI25GR-018LPu for ; Sun, 14 Feb 2021 15:38:21 +0100 Date: Sun, 14 Feb 2021 15:38:20 +0100 Message-Id: <8735xybtpf.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #46466 X-Provags-ID: V03:K1:4a+BVr9aTBj5xIfgNaEluKQxjNEmGdXo44Izx9FP4MQbLH4MsX+ ly6bPNvLr7AAh0/wmKwsWWjLMZCBe2QKjvGIGAlJNTL6m2mRI0r7xCpIz/jkM7NUDAaWHKk 1Kc+Xjx2msAjvg4w3VLL8S022w8vXrwhY7e9t/2PDywQCDaFpCWdExxQIv3fLl+u7Asdw3R n/osMdOljkcVrcHjlps7g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Ly7nIdu5+tc=:l4g67Pks/U88iVuO6N34xb YyJJ6YeGndJPNf411Ivtzu36vO9nU+7osEBgLXHE06NxoIJdm5BKxPdOj21putf3ijAvztska s2cj459FUJn3yt/NDMxZE/+u7nMsh4EjtZi6wj+9oLo4qWzTuL8Nua4XfJDP+AHPumQ7jpJG7 T7uWqFTnAs1EoPsx6oFH/qF6tFB9PDDI785rbTjRzip+0cX3VnlCwjHb+6zwruOYrjlDm/AW5 VH87FpBPQeVfVwrwqc5fKdgFitn4TYskkDzYUtof0GsMQ6RrC6gaeYJoCLwAgRm0Fk3Epj8mS eADjmcWwOnSqWMN8iekxkYOfcv1aXCU2/X0X6lZSn/FjRAHoQlK5zuy5PF0juNdc5v8sWcYLh MTqaXYeZy7kYfJVnseu69P1VQcL1sOvLrT8GME3KruUeCkj/HoNVhPSSfz2wmVDURrS24MS2x nknJ1ZmglcgrDg2xfO+Tp7D58S7Gz4l5/NbX2vs0Iv78Ab7FWHXbHeFwr2mdvmpBfjQ4IlNG0 QaHwSzkvu1F2u0KuMNxT1xuhg0IhALFC1AxdGNvU3jT+aUOk/OyaD5d1SR/l48gnDdibjYJkx DN5A4U0wuHLE19tNh+YVmSfwqJLjkjuGBmx2I1BXfSCsuRK8A50GSdtsWKkCTO4BrZaqsRG7Y G610vCIzvZpWn5nHMslpVWhJnj1R/vFk8GGzIHPGR4jP0jAwckQ7anqwD+jO90NYqH7XwMFHr GgdIOdaeC3CR0W5dBWKkxp8x7AtNzX97XQ0ZUc4L3Sn7lROOE01dCwsgS6aBSCXYiG5VJ+4D6 rp67whPW75QBHEu3WxgFXZ1Suf10vckXOxOzADlz00tX7Dh5MIBzaDk/mQD5/lkiAt33XsYea qL4zBdwnuodh5g7S9YXQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) severity 46466 wishlist quit From unknown Sun Jun 22 00:45:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh Resent-From: Erik Hetzner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Feb 2021 17:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 46466@debbugs.gnu.org Reply-To: Erik Hetzner Received: via spool by 46466-submit@debbugs.gnu.org id=B46466.161332371030992 (code B ref 46466); Sun, 14 Feb 2021 17:29:02 +0000 Received: (at 46466) by debbugs.gnu.org; 14 Feb 2021 17:28:30 +0000 Received: from localhost ([127.0.0.1]:36638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBLC9-00083o-QO for submit@debbugs.gnu.org; Sun, 14 Feb 2021 12:28:30 -0500 Received: from mail-pl1-f171.google.com ([209.85.214.171]:34699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBLC8-00083b-51 for 46466@debbugs.gnu.org; Sun, 14 Feb 2021 12:28:28 -0500 Received: by mail-pl1-f171.google.com with SMTP id ba1so2458618plb.1 for <46466@debbugs.gnu.org>; Sun, 14 Feb 2021 09:28:28 -0800 (PST) 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:content-transfer-encoding; bh=nn+yMcBRmpfQ+JQFBbSwCYqPqaAQGlWdYDOU/rw1RyY=; b=aHStBfbX3uu3HGJSJ7I46fQMQKVeVyMGr6HjyiGao4Zn4BWEeCqZkNywnwDKeVdCFx 5MJiDL28cAG+sq9tmT8OGkAplG0pcvmzh/I1feTQIyx9Swi9C1PUF7E1xipl+Myv1q9u LriGDaW+CPR/nCOfaBaMJBuXELckLxeBq/Mu9CcFQYiAIcNIkwDoJw+7iqAz0o8tjE0z GSc/byy3Ezx4Tiphchlia2PLPCxutmvZbjFEZMDcWff6Fc4jGYqgUbrxiVAwMDFjJJ9C YDUHj/MBMnMMacTSqjWsPBWByx/KQgsqI9NuvQAD4GdqZW/H50DbrHNERT6hb+IgaKmw atvg== 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 :content-transfer-encoding; bh=nn+yMcBRmpfQ+JQFBbSwCYqPqaAQGlWdYDOU/rw1RyY=; b=aqQ0wacWT6x6vY3lLR73Hfl8TgwFAejTnDZGnTL54LNjWaAyEE3Jf/XTBf1R7k9KQn z/cqlVGdFpWlax4y4o/IEUBoXqbYUm9DflwOC18SPc21UYXOUMia6x0yISILypnSLZij kKSmj5mR0v6khwQ0QYf7lHvtqyTWgh4r5qgpSO53OeDO9DxmC2pbErPCeBYkLBZu9mHl QmL6yGuphHQKUl+Md1y/8iDp1ZYF4dC7nXMGk1qFIzBoGDhB8X5gwe6zWYmfnl0imSN7 uAMoww3TwejvwlQCMEiEtYPiP9T2569n2AK9SCVifqCtR1v8WchwnWW45FoersRqt9kZ nXbA== X-Gm-Message-State: AOAM5301cw2fJVqhvUiaGalvt80iJTgxQo0PBWJy2C6qtXTd8DLqhS30 bQvNJD9zA5E8DFf/iuFY5fg= X-Google-Smtp-Source: ABdhPJxphyXMpbL8b/p0QmQKnnw0IujYkA5dcjsTa9/0Nlo+/1ODizjCYj/Go7pn0Tgz7qEEgYSOjw== X-Received: by 2002:a17:90a:e17:: with SMTP id v23mr12442306pje.193.1613323702040; Sun, 14 Feb 2021 09:28:22 -0800 (PST) Received: from michel.e6h.org ([76.126.215.191]) by smtp.gmail.com with ESMTPSA id c23sm15048299pfi.47.2021.02.14.09.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 09:28:21 -0800 (PST) Message-ID: <60295db5.1c69fb81.b419a.01e7@mx.google.com> Date: Sun, 14 Feb 2021 09:28:20 -0800 From: Erik Hetzner In-Reply-To: <874kiebtqu.fsf@gmx.de> References: <6026c5a7.1c69fb81.20d04.54d1@mx.google.com> <87eehkbb74.fsf@gmx.de> <60280767.1c69fb81.2aa53.b38c@mx.google.com> <874kiebtqu.fsf@gmx.de> 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) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi Michael, On Sun, 14 Feb 2021 06:37:29 -0800, Michael Albinus wrote: >=20 > [=E2=80=A6] >=20 > 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. > [=E2=80=A6] >=20 > We cannot hijack the argument "RemoteCommand" by default. There are > several reasons. >=20 > - 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: >=20 > RemoteCommand /bin/sh -noprofile -noediting -norc -i >=20 > - If the RemoteCommand argument is set, it isn't possible any longer to > use direct async processes in Tramp. See (info "(tramp) Remote processe= s") I see, thanks! > > It is also possible to set the PS1 value directly with this remote > > command, e.g. `("-o" "RemoteCommand=3D'PS1=3D\"$ \" %l'")`, which might > > provide even more safety against unusual prompts. >=20 > Maybe, but this should be better done with the SetEnv argument. >=20 > > 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. >=20 > 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 abou= t. 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 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 From unknown Sun Jun 22 00:45:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Jun 2021 12:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Erik Hetzner Cc: 46466@debbugs.gnu.org Received: via spool by 46466-submit@debbugs.gnu.org id=B46466.16236726287652 (code B ref 46466); Mon, 14 Jun 2021 12:11:01 +0000 Received: (at 46466) by debbugs.gnu.org; 14 Jun 2021 12:10:28 +0000 Received: from localhost ([127.0.0.1]:45165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lslQC-0001zM-I6 for submit@debbugs.gnu.org; Mon, 14 Jun 2021 08:10:28 -0400 Received: from mout.gmx.net ([212.227.17.22]:53075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lslQ7-0001z3-5h for 46466@debbugs.gnu.org; Mon, 14 Jun 2021 08:10:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1623672616; bh=sDoxuqlVwLRiaQVxXM0+jPdLCXN/iD4Nd6PRfwMsZmI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=NxHQstfzp38rVIWWZ/TJjWo6vjR6PCe4QYRwV+90JYp6srexCpjZgpyGFI5L1oWmp OD7dTtylErWgcpFu5bA4Tct3fuf9KE86TfV4wIBzs3oh7komVDgHylajGu44HpQlzH iwvtvwdZpr0biuXHaFWrNm+lKgBg3A1sX0d8AEdM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([79.140.118.238]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MBDj4-1m29Kw08XG-00Cll6; Mon, 14 Jun 2021 14:10:16 +0200 From: Michael Albinus 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> Date: Mon, 14 Jun 2021 14:10:14 +0200 In-Reply-To: <60295db5.1c69fb81.b419a.01e7@mx.google.com> (Erik Hetzner's message of "Sun, 14 Feb 2021 09:28:20 -0800") Message-ID: <87pmwok5p5.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:dXLUODQnTQpH0O16xUWgg6Y0nYbkeGhXK+QuSSIpOebsQpz6pif bRlHukJsV9OThoIVLFoO/LIlk+0je3RKU5yxSAbXRYDkSCEt6bvJ1bcfEbfZj6v/QxQNqO+ jsBgPyhwsswhA0/30u7YcUtaGsj2haRaEi6aDv5pXy4d/nsEpsfrfXNKnfondAcvW3WQ6Ms pCS2JTkv13mvdnKbLXHJg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:PesCdUhlvDE=:G9gvr0T/CmgyXkc+f0yjZA 2oI2Js9jtT37caxxjYuyIziRgEGmpEYTr8yE/90kVIXzoE7nc7zfExPW0GXzl/WDRXVvJqYw/ bp1KzpNO1x/YijK7tOQ2vUXgO8EPtuthrGGruUb3mvt2Yz2bHK9nIkGbAm1Ar1a/9xANB2QLE xrFQJm4RZyK2ilaaLeYnfMd086fTkMNfUXtrZsJ84zqXbn69bcTEpPh8EkISFyJ6Jz3THYi8j cRzaGG7g/wJuM/rsWnBqGTeMdfES1bMT5Gwra0/dGS+Q9VDxjZ6sROEvzHVDj9QDHLliHqlCm XHhqcc5oboO7dIj1epfdmqdzzwLghfKTXPxoi1LP+kNkH4gCcOnOIVL+3UOE+JEsgQ96dXp3D jfLY+3QGcHjpv85JGthU342TbNwqOyNP5sUV1xputNLtMUn7Hov9gBBzDGL835WavdrPLOvb0 mVXdbkIfx8qfJ6QepDjBy5FaVPyqqEEK/a4B4C2iZfqL2QuVk6SpU3IXpWtOJfsx4mMrN+2r/ U0Ba4jTm3+3ezfnTmvh3mec55QFhOCP45PdxFL57mPdxj5QY0ZU4blMdTK1lfjJmGkfa1ffNd yvyhVa0hq6uNtPX/+tl462aIUx5XVQkE3rStdZOpEaXEgbczI/2GRXQwWAaqFiIoWw/1VNB5X /pGilQIRbtorJK9V27z9MA+YJ/atmWr70y7SRXdi/pxu53deKyfj8Jjsj+oAPuumfpeJA89W6 1+DApvKx2xH2zZbHzf4HBTb74zVoM5C7k/sMKQFcuufzxUUdHrcTbcLDRIiXZjz0cXHZEmGQh RDc0VwnXy/gmN3bSB1sdZW9YU3PCXMYsdMkn5Ha3LyoA47r43qokoMtgAE6Z4DbZDrFRjIyOy EFaaa8Pee+Skcv02TJaK+5jz/PMVKqLGhUQVtMgjUFrDhplcvhko5V6qogV2NSCsFbBy1ZMG1 z13W8VXUlvwpGiHTc1AkwSvQmIK+8d3bZ8CZBIPsgFv95mopcS5XfOy/tNF4PLyKUY7jlt/Qu eJJ3xOGnem8ylv1OEjouTHUhvThxOTow+MyNItYS4+TwuVQHSKyW8IphDszewGu4hknhF58/P SNKQE5MkW5ET2uUM+BNWPTYCc/xyGmks1pT8ckxfw6s288HkMOY4NfV4Q== X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Erik Hetzner 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=E2=80=99ll 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. From unknown Sun Jun 22 00:45:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh 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 X-GNU-PR-Keywords: To: Michael Albinus Cc: 46466@debbugs.gnu.org Reply-To: Erik Hetzner Received: via spool by 46466-submit@debbugs.gnu.org id=B46466.162385430320501 (code B ref 46466); Wed, 16 Jun 2021 14:39:02 +0000 Received: (at 46466) by debbugs.gnu.org; 16 Jun 2021 14:38:23 +0000 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 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 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) 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) Message-ID: <60ca0cd5.1c69fb81.c882a.6ae1@mx.google.com> Date: Wed, 16 Jun 2021 07:38:03 -0700 From: Erik Hetzner In-Reply-To: <87pmwok5p5.fsf@gmx.de> 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> 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) 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" X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) --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-- From unknown Sun Jun 22 00:45:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Jun 2021 08:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Erik Hetzner Cc: 46466@debbugs.gnu.org Received: via spool by 46466-submit@debbugs.gnu.org id=B46466.162409252728152 (code B ref 46466); Sat, 19 Jun 2021 08:49:01 +0000 Received: (at 46466) by debbugs.gnu.org; 19 Jun 2021 08:48:47 +0000 Received: from localhost ([127.0.0.1]:58522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luWel-0007Jz-Bt for submit@debbugs.gnu.org; Sat, 19 Jun 2021 04:48:47 -0400 Received: from mout.gmx.net ([212.227.17.22]:39509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luWej-0007Jh-9V for 46466@debbugs.gnu.org; Sat, 19 Jun 2021 04:48:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1624092518; bh=iH/2szIqPKAcwBWje1yVAFRUi1GABlijLf6knTP1fBc=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=INyu5ZQ1rNPuL00l+hpYFNlfU9KZHOu/EyqSIysONboF4cDaigT56YLo7dTKqzegN 2EgdSkPviI53eco39BPzXPa8Umx/Nbhpc8e4lXyvmm0ZieNDdNE5b07K7kG/tUkD3I dqzO9BMLedzCskhjUnNsfO+Ee4NXbE0xGFqQXn2I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([79.140.124.249]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MrhUK-1lXGiY1do4-00nfqz; Sat, 19 Jun 2021 10:48:38 +0200 From: Michael Albinus 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> <60ca0cd5.1c69fb81.c882a.6ae1@mx.google.com> Date: Sat, 19 Jun 2021 10:48:37 +0200 In-Reply-To: <60ca0cd5.1c69fb81.c882a.6ae1@mx.google.com> (Erik Hetzner's message of "Wed, 16 Jun 2021 07:38:03 -0700") Message-ID: <87wnqqi6je.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:EBc3mrJaEi1Mvv1+/p13X62ihZsO92QQsVL6Q7yljDG1b/nJqP1 womunmu2fmQtxMlcz4magw5jjD91vMG4F/2jJBZQX0z6HYoSK5GfTmtBTEMPvnO4tdOnC7e fJrrA30kG+HRxkbSki1E1B9pcUiutCNtHfcMzS19NarPA5FS+ChPH7x8cxGJQF/LgSI02hp azeLLSmdbEK/eMVO3+3Jw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:esomsEbWMUQ=:jpiDjpDOKfVl19L11VGuAu 2uu1essYw3Y6jqUGZvDis/pZKVlJWzWm0UEfiIc+04iqX5K2Q4ohVJi7KFwt8/SS8C6b/xNEs wNOkEp0QKDznYzD+VOnSuOggAvPr+Y+ku7I4NlyfXZcgemgEPWAWAnMeA58dr5PLc0SZKsNPz BtoXJ9agy6DU/EY7874cnqAQildG9gL9NgEPvzUzJpmGMdueKwhBkPTbeVZEKZO3rssawhijI zteY29p3WX0ubMdsxy0SzCzpoz0xbInutkgMlCAgUzRBmsH7IBZz88fJRFn/PMiuXVPpMpcc0 24RViAvwGOTNCrOXXeAIK+9x0zy6lvCpKFbRlDhpIiXfgYvgB1g1A69MX+zG1S2iiTfEZ/QWe AZLMZMkxdG/y5h7CyGwcG64sfK04u22HpDJIUZwcNgnRC+miSj9O95d8BtPJXLDDsIwJCHt1V 7hRJjK5U5Pv0nzHQCc4wRWTGd1uDRTqCmsl8Fi+qweQJmoXb+rUKU6wuOL2l6luxxGAJG63V5 tjRLlSL/bwz2GA+/uBpM1g316qd8c5Zldf1A74O1JTtZzyNJddhTS7WTrDTioIQV22XUXr+LH Wo9Zp4v4QqsxzVr9ZOQs9wuNuf75bzda7+hY0wVo9ALVwOg8mAAbV8UxblzIVpTKrw15ubwLg yeThnYePJi8t2W6eElnYy8TEJeKYlUwCTWTAYacVC3UM911LIGNd70bWeemukvy+sQCLYc8lh oQP1Ko6aTazJmkvMVEBBT9VSLAlLf296PK1XUj3cuoAWAVcHzZD+LK1DqMahDoirzKJ5OCwME O5O/M6RRVbS5yxTh5TEWB/AzBL9g/h+desfkP2dj4XypD7J9GLtaU4do/I0wZV7QlMpcOVXnT nAi0dIzjE9rJhWoe7X8MNHhdoGpM7ZlPqZACRYuWk08caFPpXicVwBrOyF8qYQEahBfRZeAnY oirqE+Z//1OpZXYwh0nm80niuNT7dWmr8wfzVQUFbYU1XX7JnOTV0ox4SP1phv66tIs5wSi47 idPuNooXOxrIgr1wOkG0H+ioEOFs30LtB1NrzfTVPxkNMUnIO7ST0hTlzhTBJ9JhbrjSO8jsD jhrZnyIhdlYcHuiZuFFGsRpoe4jByboMxUMPAxDkFZHDKl8CHbUJBC2MQ== X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Erik Hetzner 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=E2=80=99m 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. From unknown Sun Jun 22 00:45:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh Resent-From: Erik Hetzner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Jun 2021 04:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 46466@debbugs.gnu.org Reply-To: Erik Hetzner Received: via spool by 46466-submit@debbugs.gnu.org id=B46466.16245096139059 (code B ref 46466); Thu, 24 Jun 2021 04:41:02 +0000 Received: (at 46466) by debbugs.gnu.org; 24 Jun 2021 04:40:13 +0000 Received: from localhost ([127.0.0.1]:42156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwH9w-0002M2-Pp for submit@debbugs.gnu.org; Thu, 24 Jun 2021 00:40:13 -0400 Received: from mail-pj1-f41.google.com ([209.85.216.41]:38504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwH9u-0002Lf-Ec for 46466@debbugs.gnu.org; Thu, 24 Jun 2021 00:40:11 -0400 Received: by mail-pj1-f41.google.com with SMTP id t19-20020a17090ae513b029016f66a73701so5104543pjy.3 for <46466@debbugs.gnu.org>; Wed, 23 Jun 2021 21:40:10 -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:content-transfer-encoding; bh=buYZ05ku+PWnjsTnY8jWMhgHoyS3IAvRJMFAdXtOQTY=; b=D6iCEcWtHNtsdTPNZA7IJgfisiGy3+dTMnuUP5QIGa9KEguiwSbu8r4U+2vVuHBmDq f6KdEzbKHlL/s24CXSXdNwGtK2/XXjhMNM25vcpYYmIgqccz2Exu2QmZHnt3WLGsw6iF MBFrkbtRYZoFGocBcXbpPqYgocvlghaT+pmdsVoJwYUXSqJKTGwflujAYtup1+OJFbZP W3/VkBU7J508maQ6PiglCh2WARqxlVfPGRWWoF2cl2eSIGEmv7CF1SJFq32yBLkNJZR0 otbdkfAyDcKp7/WvQPLGSltT/yFDTJAX2le+RGAZOooPx1OeAy5aTa1ZDq4LEZ8uqIkb CuYA== 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 :content-transfer-encoding; bh=buYZ05ku+PWnjsTnY8jWMhgHoyS3IAvRJMFAdXtOQTY=; b=pBtRYqniQEXZpMyWYAgHefJzobEafK14S8MPg07LjufVSlYFZMs6M9hep+w529Q6Ka k/kKhFnkt7WazUo0XfSWPJfhw3Q3u6kb9JXo+sbYghve9hVz7Rejq4zeg8I0Ys4wZLIu MyDMjCIsedsrDcG3MIauPdONtD5G5PMYXad5T8hcnwSOMSSC6VwBMd6YYOgltbtvkGQQ fqw6E/W4FvJkg0kN35VJ3sBePKPqHQOywKTnltMQHUGy9ItkPRkE3ziMbMjSfNsPddqE DAroSRypMLCYjpCxleoygtKWtLrjoWJTp9WeI7MNtfUBq1wNO/03A3K1ed/7jujFy00E cdHg== X-Gm-Message-State: AOAM531zT47Q4iR/Km9TlY9lg4jv8IRpAbwZzN4HUuc7w3jsni5GXnfi bWBvZbBOArvzMjmAvLOU28s= X-Google-Smtp-Source: ABdhPJxZooiCRm/CajwaW26+T0gtVWbHqicht4PqAt12GiV/YB8Zm7SHoJ2iTRNpW7WYETVjUHxXLQ== X-Received: by 2002:a17:90b:4c4b:: with SMTP id np11mr13272706pjb.125.1624509604420; Wed, 23 Jun 2021 21:40:04 -0700 (PDT) Received: from michel.e6h.org ([76.126.215.191]) by smtp.gmail.com with ESMTPSA id p17sm6917501pjg.54.2021.06.23.21.40.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 21:40:03 -0700 (PDT) Message-ID: <60d40ca3.1c69fb81.9f327.3dff@mx.google.com> Date: Wed, 23 Jun 2021 21:40:01 -0700 From: Erik Hetzner In-Reply-To: <87wnqqi6je.fsf@gmx.de> 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> <60ca0cd5.1c69fb81.c882a.6ae1@mx.google.com> <87wnqqi6je.fsf@gmx.de> 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) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi Michael, On Sat, 19 Jun 2021 01:48:37 -0700, Michael Albinus wrote: >=20 > Erik Hetzner writes: >=20 > > Hi Michael, >=20 > Hi Erik, >=20 > > 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 wh= at it > > is. >=20 > 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. >=20 > 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=E2=80=99t 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 24 10:58:22 2021 Received: (at control) by debbugs.gnu.org; 24 Jun 2021 14:58:22 +0000 Received: from localhost ([127.0.0.1]:43794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwQoA-00047G-AD for submit@debbugs.gnu.org; Thu, 24 Jun 2021 10:58:22 -0400 Received: from mout.gmx.net ([212.227.17.20]:60321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwQo5-00046w-EU for control@debbugs.gnu.org; Thu, 24 Jun 2021 10:58:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1624546691; bh=YDF7fBVgc/iCpbzMh46klU7EMQud5M/37IYXKFNUVEk=; h=X-UI-Sender-Class:Date:To:From:Subject; b=hc0KI+q7T5DixWAcKcONoadk2DzhURBba+kH8/0cVJkvxmXG84iZGFmplvWVozrHD vsx104bPtUaeajuKMjkSc4kb2vTwRQXtPnJoxaW5kT36/VuyLDcmPTj8Q+g/J3xw6U G+KWcNpQM7AFw8EOUhEEeN29Hzyno5kcwpq+6awY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.147.207]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MMXUN-1lecho0RFv-00JYEJ for ; Thu, 24 Jun 2021 16:58:11 +0200 Date: Thu, 24 Jun 2021 16:58:10 +0200 Message-Id: <87k0mjgvi5.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #46466 X-Provags-ID: V03:K1:JJqkRDb5JCEnYxnnRBXSqDF4uTI6Ym6Lp4O0EKNhK+J53OCz7XT ErTUIitg2dZOehmRQ/Q7uKJE/i7LqV6kbalCf7Sx10mUJNGp+9UABv4UovEyJ4wkXOKpmi+ LLP+Ai3EP9QjUIeOvtdwFqPztMQhq6+tF5Be4Ysg4nSQgtuE6kHKImY3yX8VPWE1RtY6X5y vFEnej25cqTzlIT8W5o+g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:KPi6y37ylQw=:GRWQLySwO/8Yvi8KP7iJGk +qp921XJ3N6YtJpNMQBgaGxbK1loJF1sbUOlKcJMXp6JbZVIMjVD0AoAGCdgC2vKpqoS4ojh8 k6rrVdCGB+lPhOgFlapu6iSC/QPDs5eGS2o8zFXGAODVKp5QsMyKdouIkaOJlnWQVrK471yDw 7LmJtVGiSB4HiNZL0EAqrzDltpdnRxAH5uj4j/M6zheHm3+4XfXIaPQxBf0prl4Ue/X6776Ec Gp0kguTDAiBVRhGSBjV24iRTDhxVjZPtrzFykpPL2GBjKDY4tFTW6B7I6D1tqrJuGvkbopJs9 TO4RlN5ouDj0OurfaXPNS1KQvJ9TI8OSV1UDfiDdw4FnnWBOJnnfrtTTi36j/tiYVa0ye5S+I 9EnxP62Whm4G3g82Ijf0IJAcqHwZRaYR3oTF6Efh776loZKhnx83Hu9SrHpolTLmeU9CSqTW3 LsUlmRfgcUzCDVkUqgOkyMgUghqoVpztpHrMLW6lJLLo6EKesvUsHf2mnu6KgUAZpjy7orL2K Rma6zWZkdUfZQFcoD1198WnDqTWC7gVfohJNko0XmfrSBuOXzcDOug3CY2eInbz7ZlI+oItx9 4HDqdtMRRhfSgr8nWr2go5HxcS1GOnfPke0H7EGUcP6CPk9mS+7RvIlZTSvJNlXmc8J3IkxLP cuqcVFJ/CT0O9aaQ2Nkei3anH6pshNlw3mztAHuA6mvEBNSvBJI30igveLdQafP324WaZ0u0q KMhxVl6kOzFNAYrxdKVUiD1cKQzbbfmJEDN+5TqDvyMbtD2j+UhOvKm1Obdyr/7jEAAeX7kWj jNHHRCPO77WFnL8N14s7nUyPepEBCfFTnlr9oVFW44/yQm9vpSrkVRxmnpJqh9Rnw4dXDAJAV 0Zp90ZuKGFK6uaa9Ea6lhJejYyJLHYSFiRnNA3JgxNVOMb5tkL0J8ll7I5fON2c61pbWS7CLD iESc6RYc0OK5hfiH/4N9lGkPIfaRZvw9XoXUfnh9feC54P1CU1bDmfabuxL8CJRmyr285Cu8X ZDKawPOzyZTsnZF6V3yZckxGV27XlOq//NNwLiiSwTaT0ZQNJpPlKLeB54yYgd7Ub3TQrTwMl sxSuXdeEEW1aLK/IWMH+7UkmWkx/f32VHSG0Ys72r5clKTH2aebyGHzvg== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 46466 + notabug quit From unknown Sun Jun 22 00:45:39 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Erik Hetzner Subject: bug#46466: closed (Re: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh) Message-ID: References: <87im23guig.fsf@gmx.de> <6026c5a7.1c69fb81.20d04.54d1@mx.google.com> X-Gnu-PR-Message: they-closed 46466 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: notabug Reply-To: 46466@debbugs.gnu.org Date: Thu, 24 Jun 2021 15:20:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1624548002-26590-1" This is a multi-part message in MIME format... ------------=_1624548002-26590-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #46466: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 46466@debbugs.gnu.org. --=20 46466: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D46466 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1624548002-26590-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 46466-done) by debbugs.gnu.org; 24 Jun 2021 15:19:45 +0000 Received: from localhost ([127.0.0.1]:43842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwR8r-0006uJ-LQ for submit@debbugs.gnu.org; Thu, 24 Jun 2021 11:19:45 -0400 Received: from mout.gmx.net ([212.227.15.18]:48135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwR8p-0006u3-Cn for 46466-done@debbugs.gnu.org; Thu, 24 Jun 2021 11:19:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1624547976; bh=b19jVHITdOSV/XIAZLP1Ja1PkZ/RrawKDQdlm4MvcuI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=D6KOC1q9syhzmanbV0LeN9Khu0MbBrNUNju1H1B5wZ+qvuKrt3nTRIk2XDZwMwRSx dNlPFRiRDurRhGWyYNBjRGakmmPBcg8RmzLizNnNDzKF3ej5bm6bM+PWIUaSVi52U2 WAgrXopXIQtfcXTObPsq42h0k+aLxZsvcZPBRhzI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.147.207]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MrhQ6-1lQO7g0f0G-00nlpK; Thu, 24 Jun 2021 17:19:36 +0200 From: Michael Albinus To: Erik Hetzner Subject: Re: bug#46466: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh 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> <60ca0cd5.1c69fb81.c882a.6ae1@mx.google.com> <87wnqqi6je.fsf@gmx.de> <60d40ca3.1c69fb81.9f327.3dff@mx.google.com> Date: Thu, 24 Jun 2021 17:19:35 +0200 In-Reply-To: <60d40ca3.1c69fb81.9f327.3dff@mx.google.com> (Erik Hetzner's message of "Wed, 23 Jun 2021 21:40:01 -0700") Message-ID: <87im23guig.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:v1hBplANEF14jlN+2gBA+kf07uk1rL+DcQAPk1IhyI+vhqrE1Yg 7SYrR02MlvY38XuFVGyiozEqBTZOrkN9AW3LZC5IdKWKeTIlYKiX2znQ3kMzu2cYyg6hgts cruwinaQRQD5H1Hw3VCA55inY/Z/g6mHl0nZ19VkdqWDgjG0C3pb8EnfV3uJOlMAyS5dMiQ cQFUi5j4AgCt0gcJHfymg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:RVn6SNrOSQE=:94NgWQ0t9EC3iGULlba6kH Vt2Q5UNKpcg/SpBgO1b82tf+zywPv22xXf9sIgdPxbi4snKgYqjfatquCOJWtv0G4HJFx9vlD ZseZrU7pcP8pk698skRrEQJ35OPCSXP/CxAxyD1/fKiQilloMllIVSSyD5EEP3eCjBSialhIy 5vnrXqUYMB5nUTH/8JtlPVfIPfXSGYKj3xzIhNDRmShZh+Utgn/hPWLO7QV3w4bQXqT4jxZDe 1JuWqAa+V+6rCgP0Xv7XjgO8oNtHTeSucXq3Owkvo89qK/1q6etSs/EXGEyAVomdPSrClc63R HnPbUAIXMhB7hsFrIycZuinvnGHdXeDje90nM5wThXzDZLTDoPWIdQRNagvDV4u5ZUMM7rT9A PIOCYs805I0yidXCakqaUD6rUOIgh0M6Zey+NeEXs/UCXYvgXLJ+ttL2+1J2eqDmx5NmlNuOu 8HyeluVHKRb8gIlZlWgQYmrlXihKE6SvdqrMefvYYpodcd6nAHQQDfZEByKoYTNzhMCWFShsR 9K68EBh11wpYdD/ZZ9EhJEpKXzjzjkmcsZGMVG958d1ZRSg+T3F+0rkM6+5IFsOo1YgsJ+YpU 6jC5vVjNLPtIuQLRq1ELrPtuwvCJaEDz2bW15/ltXhY9nQB1JllC4bBIjx2icLcVKpJIM6yqK dJhqXngAG7qnG96VpykJ8ALGWggRDCgblUZmvAvvNBTCS4bftXDgIPvk+ZBf2q8DDOMPdCzRj rkKXkmuA+qpqaaWjjWf59XWyB5eBdgrZln3WI7kMp8WgqpOkiqKe2Tqwvgk7ZG35Dp7plgUeO IYxnRhR/DMfZKURV5Jj7b5Z3ozm5Dw4jFInek+sLXBJ/1xCql6g0ReKV73hvfziIXMlxdvilH 67ep0IHBVNpPnsgJd9wJx5EqOIDcBoUD+MqOt6LhlyZjY2dTPheZ2ArnHa2fj40UpwrxX/87v 9Kh/C/SU0iVNVAAhJY5RDIL5Pg+5reBBb06EJ/NLl5yOF/gutargmuRLbc+2U7juJmeeXQSO3 whHZpamf4CE2qXLGzAG/55ch/w7fdn2FKOWHR7ltmUSiF5xpZFi7TdEsbpZGbmInI99ryKuKq KDWhLA04v3j3Lj0W/8AxykVPkGx7dO6Xs20Xv8s/s1+NquUX6bax2AwxA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46466-done Cc: 46466-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Erik Hetzner writes: > Hi Michael, Hi Erik, =20 >> 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=E2=80=99t 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. ------------=_1624548002-26590-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Feb 2021 18:15:13 +0000 Received: from localhost ([127.0.0.1]:32937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAcyG-0007m5-Q6 for submit@debbugs.gnu.org; Fri, 12 Feb 2021 13:15:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:37734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAcyF-0007lx-1S for submit@debbugs.gnu.org; Fri, 12 Feb 2021 13:15:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAcyD-0004Yn-3M for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2021 13:15:10 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:38648) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAcyA-0001ow-Dz for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2021 13:15:08 -0500 Received: by mail-pj1-x1030.google.com with SMTP id l18so101547pji.3 for ; Fri, 12 Feb 2021 10:15:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:sender:date:from:to:subject:reply-to:user-agent :mime-version; bh=6aoNLO4fNF6ZX46fTsL6r2x2WphbAZP21SnWJAQgAgY=; b=NO3IPZFWfuuISGn9ZbGOpYE15Q3jZ3DfisSoygi1aXJqV8bF1LwoGHjF15mSmLvJ6x gQ/DQ0RQkoFNWffNxypiRsk5ZRh3TSniWxk8cPDMbZq69v7Y6+sWcCUSB9q2xy72I/vG 94+35wM5nkm6DO7z9ZycRoItlRpMMCYR+4nmqfQBK+0AenbAbQHycFrrIUTvHmUgvNH2 UwrOn5qqyjsEjtYw6VSh3KoVInkdSomK/N7Q7UTme5iGeC2v5JY9p53sIhk/YB649AyP JE4jyScTkgOMDhqoYMoLnhXl+hsStc8z79i7NQklc3iBIslKj929DnC4uPNJ0L3P69cK kWNA== 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:subject:reply-to :user-agent:mime-version; bh=6aoNLO4fNF6ZX46fTsL6r2x2WphbAZP21SnWJAQgAgY=; b=JAQcvOvVHxKkigA6yScS5BHei2EMxPHKyABXfVYiGatoQRaEIjF9VMy8jDP8yKgVS4 qIOTy4XAB2Hl+TMNNMluYrYNumCGpLprzokO33zhMjKB+BHe1gxOxrfkje/xx0AV+BPS v8DR5cQe2ZQ31uQN4estiDnf47+koGdc/hrkKfRlPB1/lYVMc31upOjJMsAzqGMlY1ny fjyixXMXsHihs6xBRVj9uK537U1ngDqQxkt9A58jjvjM6IcRERhJyTuC8Kk0upoN6Fir dSWyySOOqg++2uj9la1MNkJ+pLSam1WSzmZKkNyoeKnRx7AsQqEqvou1sV5bMQC72Dy6 IuYw== X-Gm-Message-State: AOAM530f3cvyi0SWZaMG86kpmRz33uUg9P+OEIhIBX/2DgOlbRlYDFgk MiEQycFHHZKkRoFg27bD7sSoDhXMGWDllA== X-Google-Smtp-Source: ABdhPJz1asHn1xvIdUpU6uVcXmaevWSFsD0w+aNoGXE8oIQR3SGPRcCiK/khZmRjxWtKnQvmkKLjjw== X-Received: by 2002:a17:90a:d983:: with SMTP id d3mr3741733pjv.77.1613153704165; Fri, 12 Feb 2021 10:15:04 -0800 (PST) Received: from ehetzner-ThinkPad-T470.e6h.org ([2601:643:8800:93d:39ff:4f97:5b78:b488]) by smtp.gmail.com with ESMTPSA id q188sm9574187pfb.8.2021.02.12.10.15.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 10:15:03 -0800 (PST) Message-ID: <6026c5a7.1c69fb81.20d04.54d1@mx.google.com> Date: Fri, 12 Feb 2021 10:14:49 -0800 From: Erik Hetzner To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Tramp hangs with bad prompt even when using /bin/sh User-Agent: SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=ehetzner@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Erik Hetzner Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) 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@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)) ------------=_1624548002-26590-1--