From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is not recognized as an internal or external command... Date: Mon, 28 Aug 2023 19:33:30 +0200 Message-ID: <87il8zul5h.fsf@gmx.de> References: <861qfpnb9y.fsf@gmx.com> <87sf84s7bf.fsf@gmx.de> <3792bc23-2bad-8262-c674-26cec9d47b65@gmail.com> <877cpf31hs.fsf@gmx.de> <3e1db580-d1b3-1c96-ad3c-ba6e95eca8a3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38421"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Jordan Wilson , 65551@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 28 19:34:26 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qag88-0009dP-JK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Aug 2023 19:34:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qag7i-0002oy-VL; Mon, 28 Aug 2023 13:33:59 -0400 Original-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 1qag7g-0002oP-26 for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2023 13:33:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qag7f-0001aY-PQ for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2023 13:33:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qag7m-0006ug-4N for bug-gnu-emacs@gnu.org; Mon, 28 Aug 2023 13:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Aug 2023 17:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65551 X-GNU-PR-Package: emacs Original-Received: via spool by 65551-submit@debbugs.gnu.org id=B65551.169324402726547 (code B ref 65551); Mon, 28 Aug 2023 17:34:02 +0000 Original-Received: (at 65551) by debbugs.gnu.org; 28 Aug 2023 17:33:47 +0000 Original-Received: from localhost ([127.0.0.1]:48992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qag7W-0006u6-N2 for submit@debbugs.gnu.org; Mon, 28 Aug 2023 13:33:47 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:57465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qag7U-0006tp-6L for 65551@debbugs.gnu.org; Mon, 28 Aug 2023 13:33:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1693244011; x=1693848811; i=michael.albinus@gmx.de; bh=lucJdqyAaXfGmSOg3kqtj4Jw3tfhctkkX/YHixw1jMA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=BwMfxlEccXZxQV78f5OTyOHVtdU97N2pgCJUvd8pkVcf8RgnPwoPR+2H+UHAWbhKo3QPgbQ iY9M274/Risb6qujqhkpaZdxWR1IYBx6Eh+S+mhB7+NbHgLh+MCY8lbwmG4QWI2VbnUVp7bdQ e499yDrnlM0RFdsgKpBwWvssCwL2Y6ohCjR9YCkNaXG+QVCQ5twu9evmYwUi09hDSiN8ZC4bB XxVaECt6CK7FhlrX2EltqqqOeIpu7jhVMWdIHbUOR22/6ALzukwotpcwx1aqpn2ayN9qOJri0 MBdWeV1/X30AbSU96pTWihva3taVlhCa4GFv2eMVZfNuHHdsnmqA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N2mBQ-1pXbew3nLg-0134PC; Mon, 28 Aug 2023 19:33:30 +0200 In-Reply-To: <3e1db580-d1b3-1c96-ad3c-ba6e95eca8a3@gmail.com> (Jim Porter's message of "Mon, 28 Aug 2023 09:47:47 -0700") X-Provags-ID: V03:K1:THev05lXvlYwgju1Bo4wlRPoWN8aMvSBvGNDDncqWM44Ww8fuUk VAGc19XdDTkYVwN7pYPHfhxXNxgXwqJLFCJoHibPnNU+/0iagRF/NFNS++kSCaKH6sbXR4a dgNhUI88GRfc39AljkAIThA8foV/olwtC0wNgpTpCexbqHguN6CYzQ5K56MO85rq4yGDemc P37PJ44oPEbSyraGw4uJA== UI-OutboundReport: notjunk:1;M01:P0:kqGRhDeBYJk=;GTJai1/9vdo+dUQqLBfQAFuzWCi AsQPDQ17TyHzb29lPw6yxKrlF6i9kosFfgdevVPNf4HKCrFCZqgkj4CwDwYdZN5gJHs5rKCZ9 hOQBsSV/75DKfI0yiaNsrKK0fFO3pwJ2bEK6kY0vDi6Vca/b/Xy0K/6OTVs+RV0zyqBS0vS4P RCJgsgmIAHX21d66KvxbiUTe8+JVfufFLXIi+3IGWsPQqUXMg9vu2YD+zHyHetT4Cj/eQq6Uc GSKwmZV6YB18sACilLmU3U9/1xeaPDYSSgBBJKUhKG1678BeHKJ+zGLYnp1zcXiVqs5ywn+Ep KyE4d37o02zqDFHYHhFD2rCDFjSl6a+hMhqU4vQso8HhUv9UXRuYSUBksjBWQpZPEcbFWSA1G GCijQ2wQ/XXwv1qEpV4/AF+D4R8bQ7lFb/m0ubVkUEcZH5p+i6rN/3dvL7NrHHeQv3ZpBO269 XhbHSEz+gSw0XbG9Fb6DPV3/9SLhm05eHpX1UOCm/ACPoRlvjQaUMAL+Hd42MsVO3iAjeNBiV 6hxRW+Ay/RnmD3lVFTuCSBD/zwGUyFuFR862kcZo0MEIHF29S6WPqdtC1HjayRQ7EILcOSwLg wknYXGP6hONmlYFHgr+BT7ZaaKdKio6GMQKkRz69cFuV5jmNHufR6N97UzWPJxXeHIYnLptD6 Sqa6K9AVqw+Jx5PGyl8iAUSXnQV4KMUh6dt4iZdv+6r5ifciYTYTgwE6VaR3D3N+5fX2BxaOI L8v2RFpfPScid6r5eMPe1ICfOtkHd5uHevzqdfG8CM2O5VTLtYeLeNZy05aYj9a0wF5CUeV+ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268646 Archived-At: Jim Porter writes: Hi Jim, > On 8/28/2023 9:29 AM, Jim Porter wrote: >> On 8/28/2023 3:27 AM, Michael Albinus wrote: >>> I've applied the following sledge-hammer patch, which cures the problem >>> for me. But I'm pretty sure there are better ways in Eshell to fix this. >> How about something like this? It's a little less invasive (but no >> less of a hack). > > Oops, something more like this (let-binding 'tramp-remote-path'). Might work. But well, it is Tramp. Everything is more complex. tramp-remote-path is just a template, It is taken the very first time you connect to a remote host in order to determine proper PATH settings. The result is cached in the connection property "remote-path". Every new process for that remote host (like returned by make-process) checks first, whether this connection property exists, and uses it. Only if the connection property doesn't exist, it is recomputed starting with tramp-remote-path. So usually, you don't have to do anything wrt PATH. That's why my sledge-hammer patch works. If a user changes PATH for a remote connection in eshell (I don't recall how, but I'm sure it is possible in Eshell), you just have to change the respective connection property "remote-path" in Tramp. See (info "(tramp) Predefined connection information") There is an exception: If a user has the symbol tramp-own-remote-path in tramp-remote-path, the cached value is not used for a new process, and PATH is recomputed based on tramp-remote-path. Writing this, it sounds to me too complex. OTOH, no other package has tried yet to play with the remote PATH. There are bug reports by users who request a simplification (bug#61926, bug#62326). Perhaps it is time to redesign the machinery in Tramp. Best regards, Michael.