From unknown Sat Sep 06 20:03:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64644: emacs-next eshell-tramp not working when ssh to non Guix System Resent-From: =?UTF-8?Q?Mois=C3=A9s_?= =?UTF-8?Q?Sim=C3=B3n?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 15 Jul 2023 09:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64644 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64644@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168941424518266 (code B ref -1); Sat, 15 Jul 2023 09:45:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Jul 2023 09:44:05 +0000 Received: from localhost ([127.0.0.1]:44182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKbop-0004kW-Nj for submit@debbugs.gnu.org; Sat, 15 Jul 2023 05:44:05 -0400 Received: from lists.gnu.org ([2001:470:142::17]:38680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKbPR-0003yh-78 for submit@debbugs.gnu.org; Sat, 15 Jul 2023 05:17:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKbPK-0004dQ-Oe for bug-guix@gnu.org; Sat, 15 Jul 2023 05:17:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKbPI-000592-Mk for bug-guix@gnu.org; Sat, 15 Jul 2023 05:17:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E4899240028 for ; Sat, 15 Jul 2023 11:17:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1689412655; bh=nvPWhv/YQh8rNZLFin02R4uOd4V7SYq8ltIfReRfLnU=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=pLsPzjS64T+136TtcUFzyyEcrZZ7kl0Rskp97HWXgCXHHzKDXYMxqb1jFJygU70Zl NrIxJy0fcTrG8ZMbwY5lK6vZdnf/VMdRSK7uP3Ufks8/evqgJhAordZr1c7HAJo26m ylyIg+X04HhCJbysnC+/x7wE56/qjisPgk5McmtFJQ8HbvjfdhUwgeO9k53JytmTw+ MKHLJ+R6pVQyVoDpvVZ4gm5eCirNTagb29O4+Lk9XgjresKULQbjWu2YYn61I5K6bq WaOKcDh9s1Vw+++TZftW/JbwYOzSUggVWjZOomiWgamRybVmXy2f34NIGfFEoUn2WV zytVYNW1DTrcA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R32mv0t3zz6twP; Sat, 15 Jul 2023 11:17:35 +0200 (CEST) From: =?UTF-8?Q?Mois=C3=A9s_?= =?UTF-8?Q?Sim=C3=B3n?= Date: Sat, 15 Jul 2023 09:17:28 +0000 Message-ID: <87cz0tedp3.fsf@posteo.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=msv@posteo.org; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Mailman-Approved-At: Sat, 15 Jul 2023 05:44:03 -0400 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.0 (/) emacs-next eshell tramp can't execute external command on non Guix system when ssh this is: > eshell internal command work /ssh:admin@deepblue.local:~ $ ls 00-installer-config.yaml Repositories management transfer_0145.out > external commands don't work /ssh:admin@deepblue.local:~ $ id sh: cd: /home/admin/: No such file or directory ///269dceab5ed29f1610133abb297d9507#$ exit /ssh:admin@deepblue.local:~ $ reports the same error [[https://logs.guix.gnu.org/guix/2023-07-13.log#211903]] and has some done some debbuging. I paste the relevant parts: --8<---------------cut here---------------start------------->8--- IRC channel logs I'm having some troubles using TRAMP in emacs to connect to a non-guix system. I am able to use TRAMP to open and edit files, but running commands in eshell results in the error "sh: cd: /some/dir/: No such file or directory." (where /some/dir/ is a directory that absolutely exists on the remote system). After this, the eshell prompt changes to the value of tramp-end-of-output until exit is run. This does not happen when using eshell-builtin commands, or when using shell-mode. Has anyone else encountered this? Guest28: My guix is up to date and I use emacs-pgtk-next reily: could you dig into tramp via edebug and see what command actually gets executed on the remote? lilyp: This is what tramp-debug shows: https://paste.debian.net/1285797/ lilyp: A lot of the junk seems to come from having emacs-eat enabled. Disabling that results in this: https://paste.debian.net/1285799/ and this ls succeeds or not? lilyp: I just spent a long time working my way down the edebug callstack for sending a command, to find out at the end its just running make-process, and appears to be doing so correctly. make-process is a C function, so I cant really get any more insight into whats going on until it resurfaces in the tramp logs. Any advice? Update, it looks like TRAMP is trying to run the command on the local host instead of the remote, as making the corresponding directory on the local machine results in "/usr/bin/ls: No such file or directory." Again, this file exists at this location on the remote, just not the local host. Any idea why eshell and tramp only have this behavior when connnecting to a non-guix host? Everything works fine when connecting to another guix sneek later tell reily our emacs ships with some workaround to fix tramp as the receiving end but I don't have the means to debug it as sending end, sadly Will do. --8<---------------cut here---------------end--------------->8--- The oldest system I have that is experiencing the problem is: --8<---------------cut here---------------start------------->8--- (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (branch "master") (commit "cbc14b3baea457cf2718b85f767d39ff3911ce91") (introduction (make-channel-introduction "9edb3f66fd807b096b48283debdcddccfea34bad" (openpgp-fingerprint "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) (channel (name 'my-guix) (url "/home/msv/src/guix-config/") (branch "master") (commit "c19ddf3edd8688f9982d9c6f89b58f330a9aa637")) (channel (name 'nonguix) (url "https://gitlab.com/nonguix/nonguix") (branch "master") (commit "15e5924de8696cc4a19a8f508501d07f799650e1") (introduction (make-channel-introduction "897c1a470da759236cc11798f4e0a5f7d4d59fbc" (openpgp-fingerprint "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))) --8<---------------cut here---------------end--------------->8--- From unknown Sat Sep 06 20:03:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64644: emacs-next eshell-tramp not working when ssh to non Guix System Resent-From: =?UTF-8?Q?Mois=C3=A9s_?= =?UTF-8?Q?Sim=C3=B3n?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 17 Jul 2023 14:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64644 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64644@debbugs.gnu.org Received: via spool by 64644-submit@debbugs.gnu.org id=B64644.168960396227191 (code B ref 64644); Mon, 17 Jul 2023 14:27:01 +0000 Received: (at 64644) by debbugs.gnu.org; 17 Jul 2023 14:26:02 +0000 Received: from localhost ([127.0.0.1]:50764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLPAn-00074N-8v for submit@debbugs.gnu.org; Mon, 17 Jul 2023 10:26:02 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLNS6-00040E-FY for 64644@debbugs.gnu.org; Mon, 17 Jul 2023 08:35:49 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B625B240027 for <64644@debbugs.gnu.org>; Mon, 17 Jul 2023 14:35:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1689597340; bh=/FwVU+wl6UEclErsUqyLhcmSKx5TmQfUmHJke/MZ4xY=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=La8vajS3XCIAEHzxPf5lvX3hHQ7zp3o4wD63haYIBCmiYa6Wx8kQbrTcUBbltTtrD PYZYtaVsQChWsmq5ZTiZucW5F1xEtjpn5+BpyFnxLsSs2+4VhAbQsPp6sTCHV9Ks1I IUy1UG1fpMpNnfXB8amqMsD/q/vzuIgUfFkjoxek+zFzGj2MovQGza78EB5fJ9Fcm3 nAOPebP4lOJ0Nv+K2qRQQitpNbraUuzym8+bsdCn7u8Ehqca0wRgvR6y0uz3jtQ9Aw 84gjIXuEkee99qNdDQYrDHoZY/BRCm0b+AxkNnNZ18w51ELR7ns9TocmNM8hLrNMSG dWHUK41I6fV6A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R4M4X1Mxvz9rxN for <64644@debbugs.gnu.org>; Mon, 17 Jul 2023 14:35:40 +0200 (CEST) From: =?UTF-8?Q?Mois=C3=A9s_?= =?UTF-8?Q?Sim=C3=B3n?= In-Reply-To: <87cz0tedp3.fsf@posteo.org> ("=?UTF-8?Q?Mois=C3=A9s_?= =?UTF-8?Q?Sim=C3=B3n?="'s message of "Sat, 15 Jul 2023 09:17:28 +0000") References: <87cz0tedp3.fsf@posteo.org> Date: Mon, 17 Jul 2023 12:35:39 +0000 Message-ID: <87mszusokk.fsf@posteo.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Mon, 17 Jul 2023 10:26:00 -0400 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: -3.3 (---) the Emacs commit that broke eshell/tramp on Guix is cee1cbfd54375cdece23d4741ced6b0c7091f6d9 output fo magit bisect follows: --8<---------------cut here---------------start------------->8--- Head: cee1cbfd543 Improve handling of $PATH in Eshell for remote directories Tags: emacs-28.2 (159665), emacs-29.0.90 (4434) cee1cbfd54375cdece23d4741ced6b0c7091f6d9 is the first bad commit commit cee1cbfd54375cdece23d4741ced6b0c7091f6d9 Author: Jim Porter Date: Thu Sep 15 12:24:37 2022 -0700 Improve handling of $PATH in Eshell for remote directories * lisp/eshell/esh-util.el (eshell-path-env, eshell-parse-colon-path): Make obsolete. (eshell-path-env-list): New variable. (eshell-connection-default-profile): New connection-local profile. (eshell-get-path): Reimplement using 'eshell-path-env-list'; add LITERAL-P argument. (eshell-set-path): New function. * lisp/eshell/esh-var.el (eshell-variable-aliases-list): Add entry for $PATH. (eshell-var-initialize): Add 'eshell-path-env-list' to 'eshell-subcommand-bindings'. * lisp/eshell/esh-ext.el (eshell-search-path): Use 'file-name-concat' instead of 'concat'. (eshell/addpath): Use 'eshell-get-path' and 'eshell-set-path'. * lisp/net/tramp-integration.el: Only apply Eshell hooks when 'eshell-path-env-list' is unbound. * test/lisp/eshell/esh-var-tests.el (esh-var-test/path-var/local-directory) (esh-var-test/path-var/remote-directory, esh-var-test/path-var/set) (esh-var-test/path-var/set-locally) (esh-var-test/path-var-preserve-across-hosts): New tests. * test/lisp/eshell/esh-ext-tests.el: New file. * test/lisp/eshell/eshell-tests-helpers.el (with-temp-eshell): Set 'eshell-last-dir-ring-file-name' to nil. (eshell-tests-remote-accessible-p, eshell-last-input) (eshell-last-output): New functions. (eshell-match-output, eshell-match-output--explainer): Use 'eshell-last-input' and 'eshell-last-output'. * doc/misc/eshell.texi (Variables): Document $PATH. * etc/NEWS: Announce this change (bug#57556). doc/misc/eshell.texi | 10 +++++ etc/NEWS | 5 +++ lisp/eshell/esh-ext.el | 23 +++++----- lisp/eshell/esh-util.el | 55 ++++++++++++++++++++--- lisp/eshell/esh-var.el | 12 ++++- lisp/net/tramp-integration.el | 21 ++++----- test/lisp/eshell/esh-ext-tests.el | 76 ++++++++++++++++++++++++++++++++ test/lisp/eshell/esh-var-tests.el | 60 +++++++++++++++++++++++++ test/lisp/eshell/eshell-tests-helpers.el | 32 +++++++++++--- 9 files changed, 257 insertions(+), 37 deletions(-) create mode 100644 test/lisp/eshell/esh-ext-tests.el Bisect Rest (1) cee1cbfd543 * @ Improve handling of $PATH in Eshell for remote directories Bisect Log (20) git bisect start 'emacs-29.0.91' 'd9732425a6b339d83332f265da32fc3802357701' 3aef46e466f bad Merge branch 'emacs-29' of git.sv.gnu.org:/srv/git/emacs into emacs-29 d9732425a6b good Don't create unused file rmail-loaddefs.el git bisect skip 2eb2eb0c9ead205935be58ce9bb54465d48b20c8 2eb2eb0c9ea skip ; * emoji.el (emoji--define-transient): Adapt to recent changes in transient. git bisect skip 8b8038494ce8354a3e2cfffebba40dbd1328ebb9 8b8038494ce skip * src/gnutls.c (Fgnutls_available_p): Avoid duplicating capabilities. git bisect skip abfe41cc2c2932525844d9d1cef83bf877145bf4 abfe41cc2c2 skip Prepare to sumbit to gnu elpa git bisect good 8ec7f8f1699ca1ab4d1e75b369ea231f5802f0e3 8ec7f8f1699 good Update Unicode support to Unicode version 15.0.0 (bug#57846) git bisect skip f35dc7058b22a6c7bca23c6696b815f137427fb0 f35dc7058b2 skip Add sqlite library version string retrieval function (bug#58766) git bisect bad fafcf02c856ef8fd712ff75e8999dfb0f6d97f07 fafcf02c856 bad Fix syntax tables of tree-sitter modes (bug#59807) git bisect bad 8721e87a6ec0874057f83f54498a0e3a64475a53 8721e87a6ec bad ; * etc/ERC-NEWS: Mention move to erc-common.el. git bisect bad e08e9bc40f2c309bf119659a6496759493bd35e1 e08e9bc40f2 bad Remove modifications to the list of ignored files in source packages git bisect good abe83f76de36bc3922b410f9872065fc3903738b abe83f76de3 good Merge from origin/emacs-28 git bisect good 36ab1644964ae5a933bd9808536f60d4ae64c99f 36ab1644964 good Improve error message from sqlite-execute git bisect good b9aff5fdb89092b68ebd7782c8dc85e6daca14b2 b9aff5fdb89 good Fix spurious "Compilation finished" native-comp messages git bisect good 1a5e705dda54b74686cdc31543e4783a1f3337e1 1a5e705dda5 good ; * lisp/vc/vc-cvs.el (vc-cvs-clone): Remove function git bisect skip 86581698acc1a0991592e018c1ba749f3ded21be 86581698acc skip Fix faulty loaddefs detection git bisect bad 254536e41bf5fb62263206edb3c2d734f9cd50ef 254536e41bf bad Regenerated ldefs-boot.el git bisect good 1beb389e472ab8132b478c9f24dd0ab6b7398670 1beb389e472 good ; Remove over-quoting of :application values in connection-local variables git bisect bad 0954689cb3243e3af4b0c12c08bdcad608fd8433 0954689cb32 bad ; Fix some invalid Eshell syntax in an example git bisect good 7c41016fca5ab0638f1e2fed260e2ee41f3400c2 7c41016fca5 good Allow setting the values of variable aliases in Eshell git bisect bad cee1cbfd54375cdece23d4741ced6b0c7091f6d9 cee1cbfd543 bad Improve handling of $PATH in Eshell for remote directories cee1cbfd54375cdece23d4741ced6b0c7091f6d9 is the first bad commit --8<---------------cut here---------------end--------------->8--- From unknown Sat Sep 06 20:03:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64644: emacs-next eshell-tramp not working when ssh to non Guix System References: <87cz0tedp3.fsf@posteo.org> In-Reply-To: <87cz0tedp3.fsf@posteo.org> Resent-From: Baptiste Strazzulla Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 26 Jul 2024 16:48:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64644 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "64644@debbugs.gnu.org" <64644@debbugs.gnu.org> Received: via spool by 64644-submit@debbugs.gnu.org id=B64644.172201243721130 (code B ref 64644); Fri, 26 Jul 2024 16:48:03 +0000 Received: (at 64644) by debbugs.gnu.org; 26 Jul 2024 16:47:17 +0000 Received: from localhost ([127.0.0.1]:39927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXO67-0005Ui-Hv for submit@debbugs.gnu.org; Fri, 26 Jul 2024 12:47:17 -0400 Received: from mail-40141.protonmail.ch ([185.70.40.141]:11657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXLd2-00077H-At for 64644@debbugs.gnu.org; Fri, 26 Jul 2024 10:09:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1722002929; x=1722262129; bh=xyGmKoxscv564cXEQLMIso22E685ahFequXovrKt2sU=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=h5i+ebQWbaM94UpEhn9UyBM2B/80KU6xSU0Wg8XARoyo27CbKQWUJMvwmEqj2cW+L aKXyyVFau2Q+SrsUKkzJVQNs0Yq+aE2JGShrRRyYlLJLVz1yPsGuDxKIL9Jt6v4qBT H/STzYZurPqkPAaLpYaAm92I4bmAxZBM28I3zviZlSh30+qOerSacrC1ZvtfSu+j/m A6jUHWF+s58Kzu9a6a9yVwdmZd6bR2TJwObth5PPVgmWzmiRYsKbzuaPSLb54g5pb6 T8MXiq7QxmNxYuJwdBF6niAcJ5vtCbPKyswMrMJtdLFnvZK4TJm/vZVL463eCFgFbc bJKgX3//XNbYw== Date: Fri, 26 Jul 2024 14:08:45 +0000 From: Baptiste Strazzulla Message-ID: Feedback-ID: 1512762:user:proton X-Pm-Message-ID: 3e27352d9c364227826b18bc18769480ef55c1fd MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_rl7IuhAENbHRtDHYDVDYPF8Cei8jTa0RYwPlBKNta0" X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Fri, 26 Jul 2024 12:47:14 -0400 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 (-) This is a multi-part message in MIME format. --b1_rl7IuhAENbHRtDHYDVDYPF8Cei8jTa0RYwPlBKNta0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 SSBhbHNvIGhhZCB0aGUgcHJvYmxlbSBhbmQgSSBiZWxpZXZlIHRoYXQgaXQgaXMgbm93IGZpeGVk IQ== --b1_rl7IuhAENbHRtDHYDVDYPF8Cei8jTa0RYwPlBKNta0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 PGRpdiBzdHlsZT0iZm9udC1mYW1pbHk6IEFyaWFsLCBzYW5zLXNlcmlmOyBmb250LXNpemU6IDE0 cHg7IGNvbG9yOiByZ2IoMCwgMCwgMCk7IGJhY2tncm91bmQtY29sb3I6IHJnYigyNTUsIDI1NSwg MjU1KTsiPkkgYWxzbyBoYWQgdGhlIHByb2JsZW0gYW5kIEkgYmVsaWV2ZSB0aGF0IGl0IGlzIG5v dyBmaXhlZCE8YnI+PC9kaXY+ --b1_rl7IuhAENbHRtDHYDVDYPF8Cei8jTa0RYwPlBKNta0--