GNU bug report logs - #65551
29.1; Eshell on MS-Windows using plink: 'plink' is not recognized as an internal or external command...

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Jordan Wilson <jordan.t.wilson@HIDDEN>; dated Sat, 26 Aug 2023 14:13:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 28 Aug 2023 17:40:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 28 13:40:35 2023
Received: from localhost ([127.0.0.1]:49007 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qagE7-0007B6-Ao
	for submit <at> debbugs.gnu.org; Mon, 28 Aug 2023 13:40:35 -0400
Received: from mout.gmx.net ([212.227.17.21]:46187)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1qagE5-0007Af-7H
 for 65551 <at> debbugs.gnu.org; Mon, 28 Aug 2023 13:40:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de;
 s=s31663417; t=1693244420; x=1693849220; i=michael.albinus@HIDDEN;
 bh=k4uPwVGObQ0eO9a6zINa9omwJC6ozkMe11+elozP8FA=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date;
 b=hcV5nDZRiInK9w4pJZB7P+CMoHEfomkE6PENyoBEvmv3Lafhllp+hX5HWLn08kf5tjwz73t
 6uXTXzs6xPx4b1YAXwVtT8VX8RwYvCocuDkgSawhLO5e6hzcUgAJbQLo+h54BnJiprV8XM7T0
 /F3TcCOKdA9yKtHS1+R2Hxd8F07uFlwF0xZmRqafb5EegSoibS4bgiIlXN1Di1sn1wLlZnRQR
 myJhLNIP7wV2eqZkVK6Q4Tvl9QhfXmqkfY2d8TzZZylZ5Tbut5eUF8z9XmFhJQfdZp6Y10DwP
 Qs7Q0UcFQKrtq/oST7/886gC+yNDcgY3LUniZ7wfD9Xqt7JITlnw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MaJ81-1qDnnS4AYn-00WDDC; Mon, 28
 Aug 2023 19:40:20 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Jim Porter <jporterbugs@HIDDEN>
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is
 not recognized as an internal or external command...
In-Reply-To: <97733263-31d9-b92a-f569-7ec9921e79cd@HIDDEN> (Jim Porter's
 message of "Mon, 28 Aug 2023 09:53:11 -0700")
References: <861qfpnb9y.fsf@HIDDEN> <87sf84s7bf.fsf@HIDDEN>
 <3792bc23-2bad-8262-c674-26cec9d47b65@HIDDEN>
 <877cpf31hs.fsf@HIDDEN>
 <b45b2284-2386-7025-62e3-9817a2d86d78@HIDDEN>
 <3e1db580-d1b3-1c96-ad3c-ba6e95eca8a3@HIDDEN>
 <97733263-31d9-b92a-f569-7ec9921e79cd@HIDDEN>
Date: Mon, 28 Aug 2023 19:40:19 +0200
Message-ID: <87edjnuku4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:uGqrnBGjOoT0nNRh93Pya0HJHdsk/ymO+OaCbrrlD8/AWs4lvRz
 xW21kx5S6WAHkOC+OYalQOkjXOsPoaFice7knkGvajrRuc46abtHVLteHafFF+5u3cHvDKR
 etb1+vwofYMvDaxpogr4SLB9RcwX5/jzP39WJU2AwZ+JwTVajGNjyzdzPiIgEBI1uvARb2D
 oxFxOeB2bxjF9b/o166SA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:vTP5LaGrgiY=;v7RQMfsdmDNFrBABf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<jordan.t.wilson@HIDDEN>, 65551 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Jim Porter <jporterbugs@HIDDEN> writes:

Hi Jim,

> Uh... the third time's the charm I guess? (Sorry for the extra emails.)

Take your time. Tomorrow, my grand-son will arrive, staying for 10 days
or so (remainder of school holidays). Be prepared that I'll respond slower :-)

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 28 Aug 2023 17:33:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 28 13:33:47 2023
Received: from localhost ([127.0.0.1]:48992 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qag7W-0006u6-N2
	for submit <at> debbugs.gnu.org; Mon, 28 Aug 2023 13:33:47 -0400
Received: from mout.gmx.net ([212.227.17.20]:57465)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1qag7U-0006tp-6L
 for 65551 <at> 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@HIDDEN;
 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
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
From: Michael Albinus <michael.albinus@HIDDEN>
To: Jim Porter <jporterbugs@HIDDEN>
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is
 not recognized as an internal or external command...
In-Reply-To: <3e1db580-d1b3-1c96-ad3c-ba6e95eca8a3@HIDDEN> (Jim Porter's
 message of "Mon, 28 Aug 2023 09:47:47 -0700")
References: <861qfpnb9y.fsf@HIDDEN> <87sf84s7bf.fsf@HIDDEN>
 <3792bc23-2bad-8262-c674-26cec9d47b65@HIDDEN>
 <877cpf31hs.fsf@HIDDEN>
 <b45b2284-2386-7025-62e3-9817a2d86d78@HIDDEN>
 <3e1db580-d1b3-1c96-ad3c-ba6e95eca8a3@HIDDEN>
Date: Mon, 28 Aug 2023 19:33:30 +0200
Message-ID: <87il8zul5h.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:THev05lXvlYwgju1Bo4wlRPoWN8aMvSBvGNDDncqWM44Ww8fuUk
 VAGc19XdDTkYVwN7pYPHfhxXNxgXwqJLFCJoHibPnNU+/0iagRF/NFNS++kSCaKH6sbXR4a
 dgNhUI88GRfc39AljkAIThA8foV/olwtC0wNgpTpCexbqHguN6CYzQ5K56MO85rq4yGDemc
 P37PJ44oPEbSyraGw4uJA==
X-Spam-Flag: NO
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+c
 FweLmbHKcPIv86uXgQ97ipzFe54C1N9gcjmbafqmEloH1+uoKDlBKXISqnRAXt7Per2/bcsIk
 PcoWLtfPWrBX6D+BJjYoWpnclkbwTQ77RdE8yR641DNp9WE1BcO5KWQHsBU2Sfffdi6IIMMSc
 /YHzcpfBjClubRQ2ky3kSENGdlE=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 65551
Cc: Jordan Wilson <jordan.t.wilson@HIDDEN>, 65551 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Jim Porter <jporterbugs@HIDDEN> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 28 Aug 2023 16:53:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 28 12:53:26 2023
Received: from localhost ([127.0.0.1]:48924 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qafUU-00031z-0X
	for submit <at> debbugs.gnu.org; Mon, 28 Aug 2023 12:53:26 -0400
Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:50332)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jporterbugs@HIDDEN>) id 1qafUS-00031H-EY
 for 65551 <at> debbugs.gnu.org; Mon, 28 Aug 2023 12:53:25 -0400
Received: by mail-pl1-x634.google.com with SMTP id
 d9443c01a7336-1bf55a81eeaso16001575ad.0
 for <65551 <at> debbugs.gnu.org>; Mon, 28 Aug 2023 09:53:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693241592; x=1693846392;
 h=in-reply-to:references:cc:to:from:content-language:subject
 :mime-version:date:message-id:from:to:cc:subject:date:message-id
 :reply-to; bh=GLVIgvL0gwro4QRbR7G0R4kzyTxQEcRcQ2k1AE8GK8o=;
 b=ZCevMSpa8hYqdbekdTHQPpoJn3FnZ1AXisvwx9DJMdpepS88jSsTezt6wWRgyMQ+tp
 U/Qg37sjwvY/A8gmT3+VosyoJ3VquO+mNTKwKbLUbbVt+usxF601m8FF0UGpYh4ZD53c
 1rqkVEJIf6qwUWNAhVj5ci22JokbsYuKsTWC95TPLqh1hoeHEj+Go/WmkCLlsFalHmnq
 /EKyJ8khOl0omsBbp9YvrOPF9Phc/SBPOAKeTmEzX6tSKky5WTXj/2s1aXpwB/OcDZIk
 Kc8Tji/le2NMhmn8RQCHefH2OCzjbrQ82SCHZBQB0elJlMsA/1E5/dWV9o24OjCAF8M6
 QHFw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693241592; x=1693846392;
 h=in-reply-to:references:cc:to:from:content-language:subject
 :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=GLVIgvL0gwro4QRbR7G0R4kzyTxQEcRcQ2k1AE8GK8o=;
 b=KQujMGV4LXExpSHTmMIrdeqxUDrYFTkRUrIX62rvcY1mMRxKR3JYTMW1sIDkvtkt/e
 Zf1kuy70n6SAomn9M42M5KxYrUbKv81L4v1UEMnHojCwaoWAiNECpD9VTKDA52M3T7IX
 Aoli15IhyreVK7Dfkaqj5rQKrS+0K39yXWdTyQ1A0+1cRXsPezgKswEI8WYIqVeDNkkC
 tRQN+o+hqzc+HBc/7Gyjc08skBW63gDanrdUowyv5yHUr8k8rdOk4ggV/o1dNJ+c0Crh
 s7puj8EZIHitgYhVZnumPIKWubHoxdHQXWhdmzEO4J/UF6Vu6i0P6cOGFbDJi9wkk6oe
 opmg==
X-Gm-Message-State: AOJu0YwFUxseBz5BK4iRz2OFMUXFovULHNqX0bMQkSWTykDo+SLlZohU
 32+wkKT7tcyXtG/rkrdQIT4=
X-Google-Smtp-Source: AGHT+IH83yA4JLzxXaHctvmWDcRhxkJNuaASk/qSuvCMoITczXsYOusU+TOnXgIOXgI+P5jr7C65YA==
X-Received: by 2002:a17:903:11ce:b0:1bb:b226:52b1 with SMTP id
 q14-20020a17090311ce00b001bbb22652b1mr22758144plh.17.1693241592022; 
 Mon, 28 Aug 2023 09:53:12 -0700 (PDT)
Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com.
 [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id
 19-20020a170902ee5300b001bf846dd2d0sm7593240plo.13.2023.08.28.09.53.10
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 28 Aug 2023 09:53:10 -0700 (PDT)
Content-Type: multipart/mixed; boundary="------------LQeoxdQ76dhUTciH7VssQFWS"
Message-ID: <97733263-31d9-b92a-f569-7ec9921e79cd@HIDDEN>
Date: Mon, 28 Aug 2023 09:53:11 -0700
MIME-Version: 1.0
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is not
 recognized as an internal or external command...
Content-Language: en-US
From: Jim Porter <jporterbugs@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
References: <861qfpnb9y.fsf@HIDDEN> <87sf84s7bf.fsf@HIDDEN>
 <3792bc23-2bad-8262-c674-26cec9d47b65@HIDDEN> <877cpf31hs.fsf@HIDDEN>
 <b45b2284-2386-7025-62e3-9817a2d86d78@HIDDEN>
 <3e1db580-d1b3-1c96-ad3c-ba6e95eca8a3@HIDDEN>
In-Reply-To: <3e1db580-d1b3-1c96-ad3c-ba6e95eca8a3@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65551
Cc: Jordan Wilson <jordan.t.wilson@HIDDEN>, 65551 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

This is a multi-part message in MIME format.
--------------LQeoxdQ76dhUTciH7VssQFWS
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 8/28/2023 9:47 AM, Jim Porter wrote:
> 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').

Uh... the third time's the charm I guess? (Sorry for the extra emails.)
--------------LQeoxdQ76dhUTciH7VssQFWS
Content-Type: text/plain; charset=UTF-8;
 name="0001-Fix-remote-path-setting-in-Eshell.patch"
Content-Disposition: attachment;
 filename="0001-Fix-remote-path-setting-in-Eshell.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
ZSBidWcjNjU1NTEuIgorICAoc2tpcC11bmxlc3MgKGFuZCAoZXNoZWxsLXRlc3RzLXJlbW90
ZS1hY2Nlc3NpYmxlLXApCisgICAgICAgICAgICAgICAgICAgIChleGVjdXRhYmxlLWZpbmQg
ImVjaG8iKSkpCisgIChsZXQgKChkZWZhdWx0LWRpcmVjdG9yeSBlcnQtcmVtb3RlLXRlbXBv
cmFyeS1maWxlLWRpcmVjdG9yeSkpCisgICAgKHdpdGgtdGVtcC1lc2hlbGwKKyAgICAgKGVz
aGVsbC1pbnNlcnQtY29tbWFuZCAic2V0IFBBVEggJyciKQorICAgICAoZXNoZWxsLW1hdGNo
LWNvbW1hbmQtb3V0cHV0CisgICAgICAoZm9ybWF0ICIlcyBoZWxsbyIgKGV4ZWN1dGFibGUt
ZmluZCAiZWNobyIgdCkpCisgICAgICAiXFxgaGVsbG9cbiIpKSkpCisKIDs7OyBlc2gtcHJv
Yy10ZXN0cy5lbCBlbmRzIGhlcmUKLS0gCjIuMjUuMQoK

--------------LQeoxdQ76dhUTciH7VssQFWS--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 28 Aug 2023 16:48:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 28 12:48:02 2023
Received: from localhost ([127.0.0.1]:48907 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qafPF-0002nw-Jw
	for submit <at> debbugs.gnu.org; Mon, 28 Aug 2023 12:48:02 -0400
Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:54581)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jporterbugs@HIDDEN>) id 1qafPD-0002n4-Cd
 for 65551 <at> debbugs.gnu.org; Mon, 28 Aug 2023 12:47:59 -0400
Received: by mail-pl1-x62e.google.com with SMTP id
 d9443c01a7336-1bdca7cc28dso27153835ad.1
 for <65551 <at> debbugs.gnu.org>; Mon, 28 Aug 2023 09:47:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693241267; x=1693846067;
 h=in-reply-to:references:cc:to:from:content-language:subject
 :mime-version:date:message-id:from:to:cc:subject:date:message-id
 :reply-to; bh=cQf5Q74joFm0vlVz6m/Oczjr/L0wi/KlyY81BisgTrQ=;
 b=eoY13kK2cjB+QAU4wgbf8rjpat8RAOCp0+gWCo6tzhErLSIEcQ1Wp95f9uPJLRnmWa
 0nygCXwwiZ4GOqwB3J3GHnsJBJHqdNdce+yo26eVV08AeDUWIkU4PIytJ43LPI0AXkSR
 CV1X7nvksuj/5iIMQ+hvb52WL1ppuK+PQD52js0rXrMUFjqGvuMGIq1HJhr5/LycVZWs
 MHJC4o8MTkiQq8MlR3FKp4UvfF+5qNKvjP9hU666jaG+qDMHsZ02ndBxM6GFMiYhZHYf
 LH+wTgEWu5ZX4cSaQX6SWoclwI3aJEgzBen/J8wOizyqNqPJERJi2yxUxgTvoLPKxo/f
 r3Pw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693241267; x=1693846067;
 h=in-reply-to:references:cc:to:from:content-language:subject
 :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=cQf5Q74joFm0vlVz6m/Oczjr/L0wi/KlyY81BisgTrQ=;
 b=C9STEQwysQcEQkwKVfh3V7YR9go1MUMPycJP/uNu54tvlojGFtoaGr0aKYwOwqMxuj
 6wkYfG0RhV3n17+g1lrK5i1WkNffkeQJ1wOrlqxOV3c6X7WG0hU26tKv1cEjYB9RiwwF
 1i2rE1UrbwwYoVN8zTCimSEhcvR59uLzE/DFlFZPUfPqSeJPocXJojwzq8BmYdLQ/B8N
 uff9vJ7G5ko5+nb1s/gqzsUYHOJIkBNPV44jzUwlN8VJd7g/qVmIZNu4WA4Qx560SQ+i
 yMSBty72em6Y7HVHJImR0aGOQD4qIS+v++JUxNgJjAQAdeUAe8IgZbKVJiUDDJpXHd/B
 /eyA==
X-Gm-Message-State: AOJu0YzJYmw5D08yHnhKTuDH3SJ68sbUzzWTMqk+h3wd1N8zQbq7u0WP
 qYy9I9VQSaJR1EZb+Dnqbm+hnBRQkEI=
X-Google-Smtp-Source: AGHT+IGB8wDoETxOVZ+Cgon8zRIHPVliPcZhGrMEgI0P5ZGvAuEq3FY7Yol6+DxMLLe5qlPweWeZwQ==
X-Received: by 2002:a17:902:ce8e:b0:1b8:8223:8bdd with SMTP id
 f14-20020a170902ce8e00b001b882238bddmr26944360plg.59.1693241266867; 
 Mon, 28 Aug 2023 09:47:46 -0700 (PDT)
Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com.
 [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id
 v11-20020a170902d68b00b001bba1475c92sm7547833ply.113.2023.08.28.09.47.45
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 28 Aug 2023 09:47:46 -0700 (PDT)
Content-Type: multipart/mixed; boundary="------------7bnz9WqHvfkqRh4SybkRHdac"
Message-ID: <3e1db580-d1b3-1c96-ad3c-ba6e95eca8a3@HIDDEN>
Date: Mon, 28 Aug 2023 09:47:47 -0700
MIME-Version: 1.0
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is not
 recognized as an internal or external command...
Content-Language: en-US
From: Jim Porter <jporterbugs@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
References: <861qfpnb9y.fsf@HIDDEN> <87sf84s7bf.fsf@HIDDEN>
 <3792bc23-2bad-8262-c674-26cec9d47b65@HIDDEN> <877cpf31hs.fsf@HIDDEN>
 <b45b2284-2386-7025-62e3-9817a2d86d78@HIDDEN>
In-Reply-To: <b45b2284-2386-7025-62e3-9817a2d86d78@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65551
Cc: Jordan Wilson <jordan.t.wilson@HIDDEN>, 65551 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

This is a multi-part message in MIME format.
--------------7bnz9WqHvfkqRh4SybkRHdac
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

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').
--------------7bnz9WqHvfkqRh4SybkRHdac
Content-Type: text/plain; charset=UTF-8;
 name="0001-Fix-remote-path-setting-in-Eshell.patch"
Content-Disposition: attachment;
 filename="0001-Fix-remote-path-setting-in-Eshell.patch"
Content-Transfer-Encoding: base64

RnJvbSAwMDI1YWU5NDI5ZDk3NTAxYzQ5MzY1MzU5M2JlYjg4ZWM5ZWEwMjU5IE1vbiBTZXAg
MTcgMDA6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mluZCAiZWNobyIpKSkKKyAgKGxldCAo
KGRlZmF1bHQtZGlyZWN0b3J5IGVydC1yZW1vdGUtdGVtcG9yYXJ5LWZpbGUtZGlyZWN0b3J5
KSkKKyAgICAod2l0aC10ZW1wLWVzaGVsbAorICAgICAoZXNoZWxsLWluc2VydC1jb21tYW5k
ICJzZXQgUEFUSCAnJyIpCisgICAgIChlc2hlbGwtbWF0Y2gtY29tbWFuZC1vdXRwdXQKKyAg
ICAgIChmb3JtYXQgIiVzIGhlbGxvIiAoZXhlY3V0YWJsZS1maW5kICJlY2hvIiB0KSkKKyAg
ICAgICJcXGBoZWxsb1xuIikpKSkKKwogOzs7IGVzaC1wcm9jLXRlc3RzLmVsIGVuZHMgaGVy
ZQotLSAKMi4yNS4xCgo=

--------------7bnz9WqHvfkqRh4SybkRHdac--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 28 Aug 2023 16:30:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 28 12:30:06 2023
Received: from localhost ([127.0.0.1]:48884 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qaf7t-0002Ir-6Z
	for submit <at> debbugs.gnu.org; Mon, 28 Aug 2023 12:30:05 -0400
Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:55339)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jporterbugs@HIDDEN>) id 1qaf7q-0002Hu-Lw
 for 65551 <at> debbugs.gnu.org; Mon, 28 Aug 2023 12:30:04 -0400
Received: by mail-pl1-x630.google.com with SMTP id
 d9443c01a7336-1bdbbede5d4so26841975ad.2
 for <65551 <at> debbugs.gnu.org>; Mon, 28 Aug 2023 09:29:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693240190; x=1693844990;
 h=in-reply-to:from:references:cc:to:content-language:subject
 :mime-version:date:message-id:from:to:cc:subject:date:message-id
 :reply-to; bh=TdZSlBKTLMI6J/ae3YGutb/bnMBdyerzOFkEqCc5J64=;
 b=mtmbxJU5UmFe4Oa6fALIWRYyF2txRf2HhLOl+UMmt53dPbuV2fGVOigz371oNoDamc
 Qrw7RF2vVEl0XdE0SPaYOHCaGS6lhA1mvSAITsYMSz6piewduSn+toGChSfkVeViKcDE
 44bM6xEJo7MO9Ia75unz76Cji/EVtley3iWIzv/5j6VjGPcXJbWKvYT+jkTRhmijCsJ9
 ODb6LyQM+urBokhV3oEUChuZjA/jsNg3JAGGlKdZpEy7iu+HlmTHMohMpKYLs3JrdxUs
 X4B1bjrkdpxg1Zhba8yq4LHUhX1y8W/4mEXlOofOuPyQmmdtm5mdsDUil7IAW2nYEBR+
 6VwQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693240190; x=1693844990;
 h=in-reply-to:from:references:cc:to:content-language:subject
 :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=TdZSlBKTLMI6J/ae3YGutb/bnMBdyerzOFkEqCc5J64=;
 b=h9y7llfgwaxl/M37EnR2fHTLUd4se2yX4O91E1GP0rNf/z1/3rYTSGQXWo/OUCl8PR
 otRxyptBoxRK03czubrpTXncxl3MZBydx5GeHau12RzyqSw9hOhCj+58azTawI6Y+mJM
 Ro+fuA3B5yPFXw9g9Nc+anHOLr9qkSayhEcFTOSP5qjbDSWypQIJkPpbGSEXp09SYymT
 Y2TZPnr7yCsNeTOaxHtUgaNslzyH5crDiO3+WWZxjjW3b/A6s/u30B+JjJ1gHMkPzzQR
 /LWkpDAvz1YxSXo/vDJMi/O8bCOrrUgBrZfudDOv5UMkEoNDxBwzU11Cl4W4n/200ibh
 rQ4g==
X-Gm-Message-State: AOJu0YzrpOaUnHBbkrJgCEKoDnVcRitEDKAo/5PQ/RQOwmPn3irUGWUl
 XaHTBH/jcmj8YOjC5aJ5HSc=
X-Google-Smtp-Source: AGHT+IG254yCHLetamboGJoNatIQ8Pyon6TkIxEgcTbY2ts66VOGKilOLjKqptCSEZf6Z6Q4IgRLGA==
X-Received: by 2002:a17:902:c947:b0:1c0:7bac:13d4 with SMTP id
 i7-20020a170902c94700b001c07bac13d4mr25260740pla.65.1693240190062; 
 Mon, 28 Aug 2023 09:29:50 -0700 (PDT)
Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com.
 [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id
 j10-20020a170902690a00b001c0aa301703sm7560467plk.63.2023.08.28.09.29.48
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 28 Aug 2023 09:29:49 -0700 (PDT)
Content-Type: multipart/mixed; boundary="------------inAY1ytHmoaBOcClHZdtHKeO"
Message-ID: <b45b2284-2386-7025-62e3-9817a2d86d78@HIDDEN>
Date: Mon, 28 Aug 2023 09:29:50 -0700
MIME-Version: 1.0
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is not
 recognized as an internal or external command...
Content-Language: en-US
To: Michael Albinus <michael.albinus@HIDDEN>
References: <861qfpnb9y.fsf@HIDDEN> <87sf84s7bf.fsf@HIDDEN>
 <3792bc23-2bad-8262-c674-26cec9d47b65@HIDDEN> <877cpf31hs.fsf@HIDDEN>
From: Jim Porter <jporterbugs@HIDDEN>
In-Reply-To: <877cpf31hs.fsf@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65551
Cc: Jordan Wilson <jordan.t.wilson@HIDDEN>, 65551 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

This is a multi-part message in MIME format.
--------------inAY1ytHmoaBOcClHZdtHKeO
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

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).

I'll have to think about this more generally though, since I think 
Eshell should be a lot more precise about how it handles environment 
variables on remote hosts in general. Maybe we even want each host to 
have its own distinct set of env vars. That would probably be safer...
--------------inAY1ytHmoaBOcClHZdtHKeO
Content-Type: text/plain; charset=UTF-8;
 name="0001-Fix-remote-path-setting-in-Eshell.patch"
Content-Disposition: attachment;
 filename="0001-Fix-remote-path-setting-in-Eshell.patch"
Content-Transfer-Encoding: base64

RnJvbSBhNDMzMDI4ZTAwZTVkYmU4NTFmY2IyZGY1Y2NlMzVhOGE5MWU4Y2M1IE1vbiBTZXAg
MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKaW0gUG9ydGVyIDxqcG9ydGVyYnVnc0BnbWFpbC5j
b20+CkRhdGU6IFN1biwgMjcgQXVnIDIwMjMgMTI6NTM6NDAgLTA3MDAKU3ViamVjdDogW1BB
VENIXSBGaXggcmVtb3RlIHBhdGggc2V0dGluZyBpbiBFc2hlbGwKClRoaXM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dCAiJXMgaGVsbG8iIChleGVjdXRhYmxlLWZpbmQgImVjaG8iIHQp
KQorICAgICAgIlxcYGhlbGxvXG4iKSkpKQorCiA7OzsgZXNoLXByb2MtdGVzdHMuZWwgZW5k
cyBoZXJlCi0tIAoyLjI1LjEKCg==

--------------inAY1ytHmoaBOcClHZdtHKeO--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 28 Aug 2023 10:28:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 28 06:28:17 2023
Received: from localhost ([127.0.0.1]:47065 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qaZTk-00063C-QV
	for submit <at> debbugs.gnu.org; Mon, 28 Aug 2023 06:28:17 -0400
Received: from mout.gmx.net ([212.227.15.15]:38617)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1qaZTh-00062u-SI
 for 65551 <at> debbugs.gnu.org; Mon, 28 Aug 2023 06:28:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de;
 s=s31663417; t=1693218480; x=1693823280; i=michael.albinus@HIDDEN;
 bh=vsfQS2cKqio4d/V8H32PPeuyWQB6V23V6wCiM7PK194=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date;
 b=CJ+A+UT8fNo/twqV6h+ICydZTNM7iUV8me/qUtJK6gpFHF4AD8QAbfdKn9aCU+d96GKVBr7
 kdLOKqso0nFnv+D4r5uyiBu+0m7bE6Ov+8209Y/hPQgbXwOYsPRu3/iFDnL8g6iDY3G+cE1pv
 7ZaCNsHyLZS7dmVizDKAg2XDHULQRZhwviMH/0HNwwIoyOVJP0/pFD+0QR/FsYEQSzQPiwcH8
 O7Rsg14Gw6llf+oZd43rAxmUJ11MNJJdIx5OnChyKQmeI72SRX0VoBNV/gDoOp2bDN+l0pbQ5
 MDIdBz3vPyGjOrXDhIHYNgTWWKCPWo1QaK20+FdZQY+bnpHCx+cQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MBDnI-1qOzPy2Umc-00CfwQ; Mon, 28
 Aug 2023 12:28:00 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Jim Porter <jporterbugs@HIDDEN>
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is
 not recognized as an internal or external command...
In-Reply-To: <3792bc23-2bad-8262-c674-26cec9d47b65@HIDDEN> (Jim Porter's
 message of "Sun, 27 Aug 2023 11:48:36 -0700")
References: <861qfpnb9y.fsf@HIDDEN> <87sf84s7bf.fsf@HIDDEN>
 <3792bc23-2bad-8262-c674-26cec9d47b65@HIDDEN>
Date: Mon, 28 Aug 2023 12:27:59 +0200
Message-ID: <877cpf31hs.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:rZj9fl63KjBWhB9OFbFORzeF+jDE6l5K0xkgrEdvuQm8hAz99pC
 VJ/LIMPyaCSiSL1nT8sxZDZlQh7045doBkmUGCid7nAHjDBf/F6xWjJE7Y8w+5Ga2+GTKNo
 TAfvaQKCfhoTX+NWlZQgOTEGiMTVHRv4/Lyl6gOO5FPuXYg+W2775vmAbqdxbwasWcnRVDx
 E1YztlhZM49L/wyeoCnFA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:pFv7mT1gEJk=;31fQU3+aErboGxIOdUdTfTw2qdD
 8MPuj8UvBRxQ+x9DMYqMnr9lhK/Iwdxepqr5a4WEJ5QInaGIVJGI8PEyW3aP8D5mwLydrNDyQ
 /byp4xreZ7pOLVERrt4HvymC4RamnbHx1GPfSYv+CGm8NGgJlmad+8g8fE119LbpLkTBXx/Ei
 CjD15zxVVeOz00BwiLHks37BmEh0EjPtXFbYHMfjqWR8I+8r7tEfhpbqxNu97E7uhxB+5lsth
 pYYcdGm3cKuo9sbyXbfQ0J49mBQ/8bHHC+jxYJgqSZsMFuDOM6/1yHLL4weNHOuCRWEjL+sW4
 MufGBnrHZ3EVh1vQdTlzbP6D3XGRRhfa2RXSVuukjaPssVIWoU20jYnN1D9FTYVJScjHHW/St
 IrH/0INXQSdmgOyruzRwLC+cTIQaRSIXarnwZsA9xPVuAiMlVdbtZHd6KFxypDPr/AlMkQSMY
 XXEv4JwjdJYMYt2U72INheoXmyTaBfarqbGtRPa0/RQEkBjqA/81zDVtkV96ImNuICFto3XDz
 R4K5XA2u4LBJ0bRxAqh0HXu2hhJGDLqFbqtbCFoC+FSZbx8WfEi3QZOWZ8g8Sp59WtGI3y++R
 AeT6wlNQ07vJO7OqQCcrCguyWELOmpjNiaoMnP7mPKMRRrVuFcjcgowpnEaqvVSbs4ISfrEg5
 Qus4TELcTP+I46ZTFoxyNn8KQ8niYsTxfL18pXXP/qFyYB28rYhP9fYWPu0i1JkCGDFwnlAt3
 wW8q3tM3R665zoYQSviK/jS/jjGBXXvj8Evw/645PiETrGBLbuUcnjiHPLdiJZ3CVHKRd0LUY
 nw5XD0lHCOuOHwGxbMmJ91sZKixnkxgvlzw2AcPPf+w88/O+RLnA29gIVPR0MsXd1MZBansQC
 j0e71rbeCXwikpl8cscEQTzZEt4EyFYdsNBTO671X/z5qhexpyp4S64zCY8Wfz/WTWRiYaBdi
 oWw9XdF/YVT+oOJLjfRcrqRGI2o=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 65551
Cc: Jordan Wilson <jordan.t.wilson@HIDDEN>, 65551 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain

Jim Porter <jporterbugs@HIDDEN> writes:

Hi Jim,

>> Second, I've played a little bit on MS Windows. I haven't installed
>> Emacs 29 there, just an Emacs git master checkout. And plink is not in
>> the PATH of my MINGW64 bash shell, so I'm using sshx. But everything
>> works under this constellation:
>
> I'm using sshx locally to test this, and can reproduce the
> issue. Maybe your MINGW64 configuration is smoothing over the bug for
> you. When I tested this, I started from the MS-Windows "cmd.exe" and
> ran "emacs -Q", with "ssh.exe" in my PATH.

Yes, with this scenario I see the problem as well.

> In Emacs 28, this worked fine, but it regressed in 29. I believe this
> is due to commit cee1cbfd54375cdece23d4741ced6b0c7091f6d9, which
> changes how Eshell manages its PATH env var.
>
> I think what Eshell would want here is to set its environment
> variables *only* for the subprocess it creates via 'make-process'. For
> local subprocesses, I don't think we need to do anything fancy, but
> for the remote case, we'd need a way to say "use the original
> process-environment for all the Tramp code, but use this new
> process-environment for the actual subprocess". Maybe there's already
> a way to do this, or maybe we need to add some new powers to
> 'make-process' or something...

AFAICS, the problem is in eshell-environment-variables, which sets PATH
to the remote path. There are good reasons that Tramp doesn't handle the
PATH environment variable, but uses its own tramp-remote-path variable.

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.

Best regards, Michael.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment

diff --git a/lisp/eshell/esh-var.el b/lisp/eshell/esh-var.el
index 711c35f8527..4c5ce1a1a35 100644
--- a/lisp/eshell/esh-var.el
+++ b/lisp/eshell/esh-var.el
@@ -459,7 +459,7 @@ eshell-environment-variables
 environment, as specified in `eshell-variable-aliases-list'."
   (let ((process-environment (eshell-copy-environment)))
     (dolist (var-alias eshell-variable-aliases-list)
-      (if (nth 2 var-alias)
+      (if (and (not (string-equal (car var-alias) "PATH")) (nth 2 var-alias))
 	  (setenv (car var-alias)
 		  (eshell-stringify
 		   (or (eshell-get-variable (car var-alias)) "")))))

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 27 Aug 2023 18:48:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 27 14:48:56 2023
Received: from localhost ([127.0.0.1]:46268 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qaKoi-000399-91
	for submit <at> debbugs.gnu.org; Sun, 27 Aug 2023 14:48:56 -0400
Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]:53266)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jporterbugs@HIDDEN>) id 1qaKod-00038q-HU
 for 65551 <at> debbugs.gnu.org; Sun, 27 Aug 2023 14:48:54 -0400
Received: by mail-il1-x134.google.com with SMTP id
 e9e14a558f8ab-34bbc5eb310so8981505ab.2
 for <65551 <at> debbugs.gnu.org>; Sun, 27 Aug 2023 11:48:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693162120; x=1693766920;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:mime-version:date:message-id:from:to:cc
 :subject:date:message-id:reply-to;
 bh=kbbljR5dN+PX5Viv7jUcG2lhZXsI9dcsJ23hbsr1PWc=;
 b=jdNW0hKRs+M2tCMlhJzWW+grBLibkYJjUxO+aT0F8FOECu4STlxLDKmxT4c6HGUQS+
 zNYrGM4Rsp9IFUkhSZ+X3VaN5LjOGAnXWVqNw6t/EMBsMNGIbqANj/5/Ku7tUHLOh9h0
 m0AzvYkBsWba/ZtP/2Bq00R/c6q7Cd9ZFgJT1Z32z8T3MyxcxMOs8AzTQjwNvh1nFVOE
 MgvfXoZnwe6/Jn18OpwlyYzMbLh13KtnAZ9HsIhvI6UKC/q2UNDPfAKYGN89FJmhMmAO
 8shl4d3dIknXBdgRIQ+PNlZuVhCmfQIb1yr2jtBlKMNRR3gdbhD07eqmrncyeDoLMWc2
 p2mg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693162120; x=1693766920;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=kbbljR5dN+PX5Viv7jUcG2lhZXsI9dcsJ23hbsr1PWc=;
 b=XSfM6gzVmha9QT0hChvpR8LbARGZylvGqTGHYY7tzIjs/PLY23zneh6pG6Ot+PCEZc
 A72Cz+EI9q1bUPxJsbmkWxyu3pZvzLZ+SqpWrUb6Rffnf/f8dkZqBUAcN2835CHJA8hi
 InS3FSnXyDz0sGsIm1a7LHyknETTwSawnp5v0bCvbhCkY97Ns50/7oiIlYlRtc5hTPFf
 cepv/+5Mf7+a3tKheloMgs8SIuA4Kikz2TqimGyARnoJjWgEJ/QSAaa7nA57npGwU7Q+
 D6YE7U7e/yZb2HbjZh3Ql2DOnejF7oLFJCzUBFzPyOH5tS5HW/tiWFAng8cpoQm7EaNA
 llUA==
X-Gm-Message-State: AOJu0Yyej5io2PnM0vwfddKhvkvDoPkiAp9Gp/23k2dWcwmYZulE4YUP
 9sowX7d8oALKXD7eBvXGqSE=
X-Google-Smtp-Source: AGHT+IHyDHFRvt0WZjJOJ5IgTVofLQnzGjpFkFynzdZt9O6QnLt7g/86nEF5bvGcDBcWDaEYsBzxZg==
X-Received: by 2002:a92:d950:0:b0:34b:aef9:60d4 with SMTP id
 l16-20020a92d950000000b0034baef960d4mr12648004ilq.27.1693162119722; 
 Sun, 27 Aug 2023 11:48:39 -0700 (PDT)
Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com.
 [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id
 j10-20020a170902690a00b001c0aa301703sm5586091plk.63.2023.08.27.11.48.39
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 27 Aug 2023 11:48:39 -0700 (PDT)
Message-ID: <3792bc23-2bad-8262-c674-26cec9d47b65@HIDDEN>
Date: Sun, 27 Aug 2023 11:48:36 -0700
MIME-Version: 1.0
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is not
 recognized as an internal or external command...
Content-Language: en-US
To: Michael Albinus <michael.albinus@HIDDEN>,
 Jordan Wilson <jordan.t.wilson@HIDDEN>
References: <861qfpnb9y.fsf@HIDDEN> <87sf84s7bf.fsf@HIDDEN>
From: Jim Porter <jporterbugs@HIDDEN>
In-Reply-To: <87sf84s7bf.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65551
Cc: 65551 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 8/27/2023 10:50 AM, Michael Albinus wrote:
> First I try to understand the scenario Eshell is using. If Eshell has
> changed to a remote directory, and a command like "./test.sh" is called,
> I would expect a synchronous process. But this doesn't seem to be the case:
> 
>>    tramp-file-name-handler(make-process :name "test.sh" :buffer #<killed buffer> :command ("/home/username/test.sh") :filter eshell-output-filter :sentinel eshell-sentinel :connection-type nil :stderr nil :file-handler t)
>>    eshell-gather-process-output("/plink:username@HIDDEN:/home/username/test.s..." nil)
>>    eshell-external-command("./test.sh" nil)
> 
> `make-process' is called, an asynchronous process. Is this intended? Has
> this been changed since Emacs 28?

Yeah, that's intended. A couple of things did change in Emacs 29, but 
Eshell has always used an asynchronous process here. The goal is for the 
process to be only partially synchronous: Eshell will wait until the 
process is done before proceeding (e.g. to emit the next prompt), but it 
also wants to be async so that you can do other things in Emacs while 
waiting for the process to complete.

> Second, I've played a little bit on MS Windows. I haven't installed
> Emacs 29 there, just an Emacs git master checkout. And plink is not in
> the PATH of my MINGW64 bash shell, so I'm using sshx. But everything
> works under this constellation:

I'm using sshx locally to test this, and can reproduce the issue. Maybe 
your MINGW64 configuration is smoothing over the bug for you. When I 
tested this, I started from the MS-Windows "cmd.exe" and ran "emacs -Q", 
with "ssh.exe" in my PATH.

In Emacs 28, this worked fine, but it regressed in 29. I believe this is 
due to commit cee1cbfd54375cdece23d4741ced6b0c7091f6d9, which changes 
how Eshell manages its PATH env var.

I think what Eshell would want here is to set its environment variables 
*only* for the subprocess it creates via 'make-process'. For local 
subprocesses, I don't think we need to do anything fancy, but for the 
remote case, we'd need a way to say "use the original 
process-environment for all the Tramp code, but use this new 
process-environment for the actual subprocess". Maybe there's already a 
way to do this, or maybe we need to add some new powers to 
'make-process' or something...




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 27 Aug 2023 17:55:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 27 13:55:59 2023
Received: from localhost ([127.0.0.1]:46198 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qaJzS-0004mp-Vs
	for submit <at> debbugs.gnu.org; Sun, 27 Aug 2023 13:55:59 -0400
Received: from mout.gmx.net ([212.227.17.22]:38397)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1qaJzQ-0004mX-Bs
 for 65551 <at> debbugs.gnu.org; Sun, 27 Aug 2023 13:55:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de;
 s=s31663417; t=1693158943; x=1693763743; i=michael.albinus@HIDDEN;
 bh=HhF21Ueu4i97EOKjz2ufLX5DLK0+x4nDQiK9VB2OOzE=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date;
 b=m53edlYKfcHyr0xdJTZ1ZGqee5gVkxljLaeOxpQehZlOYHl4TgzkCg+M/XhrFKE2uuP7b0r
 9em/9has6jqQE0IB/WXeztMXxXeI3MDFG+ndcyS5mQrXE2qmafGDLZKKO2fEkhmZiz/VaIsKU
 95Xj+31z9W/cRsRe0iHcWbfpvK7kp/SOJoHlm/sQFHID42oR968+JmzzBBQYolzsDvZEll1hb
 SJNiwBDhkmr3kCqEgKAqhYqvBp8g8Nlhto1DplYqj7VtJ4LXq+JGFwDklCNykNPiZ1BynzUWW
 Xr8+5BpydNiP54ARevQCUNfyCHSPot4O6HDeOc296yJVnXqfO80w==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M89Gt-1qducG2Vhz-005KUc; Sun, 27
 Aug 2023 19:55:43 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Jim Porter <jporterbugs@HIDDEN>
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is
 not recognized as an internal or external command...
In-Reply-To: <8e61bce9-e818-c52c-7478-7c11452735ec@HIDDEN> (Jim Porter's
 message of "Sat, 26 Aug 2023 12:16:12 -0700")
References: <861qfpnb9y.fsf@HIDDEN>
 <8e61bce9-e818-c52c-7478-7c11452735ec@HIDDEN>
Date: Sun, 27 Aug 2023 19:55:42 +0200
Message-ID: <87o7iss735.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:meGNiO9QgZi7F9BB6gLdn2Le3KMLGUmS+pPpUktSfNgUcNm3cr6
 392KKZJ9NMrRaWdnk0jWR3bN070AiMqC0rZYfDfYEYKbZDZkJ+vLBaHk3P0c5HVGx/U2GiQ
 aFLX1ys5MPylJy6NkX12aMH4g4szwF1QopvNIjjD7k9OK6cLJEUcOHcfh1gtSnMh0OiBvlZ
 LUsDsjiHvJvHSGuiykYMw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:UOJ/jIAS/tU=;uZTT7YAY5cmMuBts4YMXz90Wi7q
 G9RELcTSGx/+163mkjgwJGTXw0erM6b8eP9hgnd1E7QEip/tb36SsEygkf8nMOTL9vbEW8/CN
 AuT2D1VjC1LYE/wyBnOD9tdwodL9u7e6LdWDxvQMIvYZnntSKq4VJ+NOAYPa5ikfW7Qta3rXu
 dfOM96PuPdJfN9SvNF5JkQbsUajk6LF2MUb489qyIOra4nDD/ZVG+Q/F/XxHQfQvSDZjh6ReT
 iNQcUeVWyhKDtK2CxvmcJEyo4jqphgMN65nE/Kw3LZrI/NoHxzNUTzceaBZOpIENopO8fsqUd
 UPA8penNB3tDTBHVh1NgKIzM0/WKnCBUBD31ngrUdlyds0i/7Vv6tMEhXSRV3vDv/gQP7T7Pl
 mIBDQ9Xnz3gpx+USlKQI2A+9CM0LccUVdRSx0DGt4B9ikV3nlT7RP/PvKsGeJkZtAi5x9zL7f
 n3KT24PZuNEprFS2BFujUT3EOjqpr5OoQ5TyFKFJRsI4/In2QliglS9k2OPQzZV9ijQh54Xw3
 ztgUjQB2Sr6/aKUO1w/NAMetVd1gynHXcAuNsxqnV0XWFXDsTBKMorvOUSvEkiCq0qnCB+cKA
 8loQb6UUvvvdf+jNt8hCpdeBJ8ePeOVkV1SU4Jle3N3j4fPooX0AafUM7gOMCDyL/ZuLBUQhd
 cDcahv2m+GV+0qreRqEKVDJ+7TgKtI8N87z8rbVySI37gSfjiacqMeMZCSsv83W708C0Neq1D
 eCgDzre4k3dUpbVLfzDICsyLBv4sgudOR36FdqWrYj2bQUV5UAgtX+kkgU/7VqzRKmMhQcjJf
 QeQYffh6I105P4maB6weZ5RxutQg2HnE9SlQ9PD3rhBSWuDuvAN4Dg6EtpYRpnPK7A/v4QPSC
 CszOvoa0NIz/2l7sqqlxzDtCoKaC2jBpKlNPkeJEwWD1rh1jBaZAVs+O46cXYUFfjJpOXAqpe
 rlPQvO/0QSdVSg3s/MzzdFKkmR8=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 65551
Cc: Jordan Wilson <jordan.t.wilson@HIDDEN>, 65551 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Jim Porter <jporterbugs@HIDDEN> writes:

Hi Jim,

> Thanks for reporting this. I can reproduce this issue. Does evaluating
> the following work?
>
>   (setf (alist-get 'tramp-login-program
>                    (alist-get "plink" tramp-methods nil nil #'equal))
>         (list (concat "\"" (executable-find "plink") "\"")))

This workaround might help in the given situation, but it won't work in
general. The user could apply a multi-hop file name, with plink being
the method of another hop.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 27 Aug 2023 17:51:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 27 13:51:03 2023
Received: from localhost ([127.0.0.1]:46189 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qaJug-0004eT-SY
	for submit <at> debbugs.gnu.org; Sun, 27 Aug 2023 13:51:03 -0400
Received: from mout.gmx.net ([212.227.15.15]:39041)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1qaJuc-0004dv-CY
 for 65551 <at> debbugs.gnu.org; Sun, 27 Aug 2023 13:51:01 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de;
 s=s31663417; t=1693158645; x=1693763445; i=michael.albinus@HIDDEN;
 bh=FGM7eIrSzeDrucgqeZe+/fPxdxyG19yGtOhvvmuKcC4=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date;
 b=nyvFrqBOX7XsqGYcQEYq70sAeV+kv3cPH1TjP9dnZrrj81mabm1r6UllSU6ENfwjxqvj/7j
 2qkV57Jw0OQMqXvl43gyE43DmNiF3wOMQKyPp+ZYjDLJFIj/yGMy2SagbSY5VsDKdFeCcbtJW
 um/EQXk6B6vTAhsmg+ndkvt9R464Ltq4NMrGUShOiNb0BEqB4CzUNgA38tOCZDO78E1fWAlTZ
 z4ydAQAcRHcbwZvGeJHev4TFaU3bWHiZLyRMbPOcaJ+5IkIm9EkXu0nIw/zAOC5dtxlZKXgac
 DgTaSyS+x2Eqb9pZ+bWO3u6MgTbXd3yv4TrtH4qXdV4Kz1ifekLQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MmDEg-1psDeH30iG-00iFSz; Sun, 27
 Aug 2023 19:50:45 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Jordan Wilson <jordan.t.wilson@HIDDEN>
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is
 not recognized as an internal or external command...
In-Reply-To: <861qfpnb9y.fsf@HIDDEN> (Jordan Wilson's message of "Sat, 26 Aug
 2023 15:11:53 +0100")
References: <861qfpnb9y.fsf@HIDDEN>
Date: Sun, 27 Aug 2023 19:50:44 +0200
Message-ID: <87sf84s7bf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:DzvC+m6fPQIjMPB/gISkQqpDSvrcez+I/6pl2iUxWYehWHw0/E/
 AsqbhEeGD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kBmDik6/321nqdL46VriibgzZbn1wWJFZdbOaju3V+69WFsK5S8wAki9LUuz
 htbnwVFKIfUSBVzN1eU0K5DgIFBugXsAJozSdkYSzj4K9ex4VvGAxsCCASeYcTgxKiFF4jWB7
 uA3houIOPwy2LSRM5K6EbDTVCdQ=
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 65551
Cc: 65551 <at> debbugs.gnu.org, Jim Porter <jporterbugs@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Jordan Wilson <jordan.t.wilson@HIDDEN> writes:

> Hi all,

Hi Jordan & Jim,

> I've found a bug in Eshell on MS-Windows on 29.1. This is a regression
> from 28.2. When connected to a remote machine using putty's "plink",
> using any commands on the remote machine (e.g. not built-in to eshell)
> prints this error in the eshell buffer (details replaced):
>
> plink -l username -ssh -t example.com " env 'TERM=3Ddumb'
> 'PROMPT_COMMAND=3D' 'PS1=3D#$ ' /bin/sh -i " ** exit || exit
> 'plink' is not recognised as an internal or external command, operable
> program or batch file.
>
> Recipe, starting from "emacs -Q":
> 1) open eshell
> 2) connect to a remote host using plink
> - cd /plink:username@HIDDEN:/home/username/
> 3) ./test.sh (executable script)
> or...
> 3) *ls
> or...
> 3) (any remote command not built-in into Emacs)
>
> Below is the backtrace produced from this (using
> `toggle-debug-on-error') again with details replaced.

First I try to understand the scenario Eshell is using. If Eshell has
changed to a remote directory, and a command like "./test.sh" is called,
I would expect a synchronous process. But this doesn't seem to be the case=
:

>   tramp-file-name-handler(make-process :name "test.sh" :buffer #<killed =
buffer> :command ("/home/username/test.sh") :filter eshell-output-filter :=
sentinel eshell-sentinel :connection-type nil :stderr nil :file-handler t)
>   eshell-gather-process-output("/plink:username@HIDDEN:/home/userna=
me/test.s..." nil)
>   eshell-external-command("./test.sh" nil)

`make-process' is called, an asynchronous process. Is this intended? Has
this been changed since Emacs 28?

Second, I've played a little bit on MS Windows. I haven't installed
Emacs 29 there, just an Emacs git master checkout. And plink is not in
the PATH of my MINGW64 bash shell, so I'm using sshx. But everything
works under this constellation:

=2D-8<---------------cut here---------------start------------->8---
Welcome to the Emacs shell

~ $ *hostname
win10
~ $ *uname -sr
MINGW64_NT-10.0-19045 3.2.0-340.x86_64
~ $ cd /sshx:detlef.fritz.box:
/sshx:detlef.fritz.box:~ $ *hostname
detlef
/sshx:detlef.fritz.box:~ $ *uname -sr
Linux 6.2.0-27-generic
/sshx:detlef.fritz.box:~ $ which hostname
/sshx:detlef.fritz.box://usr/bin/hostname
/sshx:detlef.fritz.box:~ $ *which hostname
/usr/bin/hostname
/sshx:detlef.fritz.box:~ $
=2D-8<---------------cut here---------------end--------------->8---

> Thanks,
> Jordan.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 27 Aug 2023 06:30:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 27 02:30:20 2023
Received: from localhost ([127.0.0.1]:43906 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qa9Hw-0006EP-9c
	for submit <at> debbugs.gnu.org; Sun, 27 Aug 2023 02:30:20 -0400
Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]:44169)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jporterbugs@HIDDEN>) id 1qa9Hu-0006E9-09
 for 65551 <at> debbugs.gnu.org; Sun, 27 Aug 2023 02:30:18 -0400
Received: by mail-oa1-x29.google.com with SMTP id
 586e51a60fabf-1c4dd644cf8so1595614fac.0
 for <65551 <at> debbugs.gnu.org>; Sat, 26 Aug 2023 23:30:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693117806; x=1693722606;
 h=in-reply-to:from:references:cc:to:content-language:subject
 :mime-version:date:message-id:from:to:cc:subject:date:message-id
 :reply-to; bh=vXbsSHaLrkhgStUjdoYU4cNf/d4zaKCYv3yRp9F/JxI=;
 b=Q+VDRLU5GQoSXLXZqyFrLLfnCnuUFaM1c19Uu+nOvbjn5HdrFsuXZqTfJ3uDy1+oa2
 ollILs21osR7s7EGOH455lhIO3T2//uFwWNCyk4HLaZeRuHfTHgqLs2cE82SvqhimC6G
 /34s5x+AVDl/OEDhHHC41iCX26PHYFnUZvBaiG7ukbz0X6byBR7YfMsUZavmF0da+H4U
 B2vuof4aOX6KI8EWaPi29oTl4gtHtsjBMtXLYyWIpWh3VKf1lFLr/IPsg4s5O71JybMc
 Jnw6RBQdS2DAwwVzOMxJJUzgAYsuqktvPy6337WSSvSEM+Es8MZCPgZXjH22vnn3e1T9
 yU6A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693117806; x=1693722606;
 h=in-reply-to:from:references:cc:to:content-language:subject
 :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=vXbsSHaLrkhgStUjdoYU4cNf/d4zaKCYv3yRp9F/JxI=;
 b=Q79qwuoyEMETfLNbi5Nu/+WSLWVqAZxrl/QBIuihoshyYvURL/czmXtUbaaSBOOhGN
 Cro/L6K05fiTN7i15x6SM5xZXeXW0FyBmMDKBtJtzvuTwAwtX4I9rl1r3qpni1ftK4DU
 FYvJAWkSn7kwKtP0MD+syZDJIUkaaO/eOZHk4JcjImaaV+fwvj0VOluvWwxLE5tk37Up
 0aZR9ZzpD2AfBl/7wA+gSt7SG0xQ56qBLnCbu3kUHJwLVJkOvu20XbhZMEs++7vPVZi+
 Vd2jOm7lpnNX6putFcVVqj9xyi6+BQ7bFPSGmHomxY3GST6H0oviRoO8M4w30Vfi/v5m
 J4Jw==
X-Gm-Message-State: AOJu0YzBCwRnF9u/7i6H+B8CzSgqEPohJWgSW0G3IoeSxWh6rcKEfihG
 P/9OIfgEm60dfzud/MgjPEM=
X-Google-Smtp-Source: AGHT+IF2kOFqRDE9tJMefQQJQjka7HXC4yLk4s0omcAgGUA274yGZyrWZ37v74Ee8pk+hMfbS9Y48g==
X-Received: by 2002:a05:6871:149:b0:1bf:4a66:d54f with SMTP id
 z9-20020a056871014900b001bf4a66d54fmr8597755oab.56.1693117806241; 
 Sat, 26 Aug 2023 23:30:06 -0700 (PDT)
Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com.
 [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id
 js20-20020a17090b149400b002676e961260sm15096326pjb.0.2023.08.26.23.30.05
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 26 Aug 2023 23:30:05 -0700 (PDT)
Content-Type: multipart/mixed; boundary="------------NMbqtZYwucF18w7HJvlT1TE4"
Message-ID: <5156e2ab-e4b3-a5ad-8a15-da7bcfe74439@HIDDEN>
Date: Sat, 26 Aug 2023 23:30:05 -0700
MIME-Version: 1.0
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is not
 recognized as an internal or external command...
Content-Language: en-US
To: Jordan Wilson <jordan.t.wilson@HIDDEN>
References: <861qfpnb9y.fsf@HIDDEN>
 <8e61bce9-e818-c52c-7478-7c11452735ec@HIDDEN> <86il91o5lz.fsf@HIDDEN>
From: Jim Porter <jporterbugs@HIDDEN>
In-Reply-To: <86il91o5lz.fsf@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65551
Cc: 65551 <at> debbugs.gnu.org, michael.albinus@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

This is a multi-part message in MIME format.
--------------NMbqtZYwucF18w7HJvlT1TE4
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 8/26/2023 2:28 PM, Jordan Wilson wrote:
> Hi Jim,
> 
> On 2023-08-26 (Sat) at 12:16 (-0700), Jim Porter <jporterbugs@HIDDEN> wrote:
>> Thanks for reporting this. I can reproduce this issue. Does evaluating the
>> following work?
>>
>>    (setf (alist-get 'tramp-login-program
>>                     (alist-get "plink" tramp-methods nil nil #'equal))
>>          (list (concat "\"" (executable-find "plink") "\"")))
>>
>> If so, I think I've identified the bug: in 'eshell-gather-process-output', we
>> set the 'process-environment' to Eshell's environment variables. In a remote
>> directory, this includes the remote PATH. However, that confuses Tramp, which
>> uses that remote PATH to look for the local "plink.exe".
> 
> I can confirm that snippet does resolve the problem.

Thanks for checking. That's probably the best way to get things working 
for now, but I'll make sure to get a fix for this in for Emacs 29.2. In 
the meantime, here's a regression test that we should be able to use to 
verify the fix once we have it.
--------------NMbqtZYwucF18w7HJvlT1TE4
Content-Type: text/plain; charset=UTF-8; name="remote-path-test.patch"
Content-Disposition: attachment; filename="remote-path-test.patch"
Content-Transfer-Encoding: base64

ZGlmZiAtLWdpdCBhL3Rlc3QvbGlzcC9lc2hlbGwvZXNoLXByb2MtdGVzdHMuZWwgYi90ZXN0
L2xpc3AvZXNoZWxsL2VzaC1wcm9jLXRlc3RzLmVsCmluZGV4IDhlMDJmYmI1NDk3Li43ZDA0
MzJkYmU2OCAxMDA2NDQKLS0tIGEvdGVzdC9saXNwL2VzaGVsbC9lc2gtcHJvYy10ZXN0cy5l
bAorKysgYi90ZXN0L2xpc3AvZXNoZWxsL2VzaC1wcm9jLXRlc3RzLmVsCkBAIC0yNTksNCAr
MjU5LDE5IEBAIGVzaC1wcm9jLXRlc3Qva2lsbC1waXBlbGluZS1oZWFkCiAgICAgICAgICAg
ICAgICAgICAgICBvdXRwdXQtc3RhcnQgKGVzaGVsbC1lbmQtb2Ytb3V0cHV0KSkKICAgICAg
ICAgICAgICAgICAgICAgIiIpKSkpKQogCisMCis7OyBSZW1vdGUgcHJvY2Vzc2VzCisKKyhl
cnQtZGVmdGVzdCBlc2gtdmFyLXRlc3QvcmVtb3RlL3JlbW90ZS1wYXRoICgpCisgICJFbnN1
cmUgdGhhdCBzZXR0aW5nIHRoZSByZW1vdGUgUEFUSCBpbiBFc2hlbGwgZG9lc24ndCBpbnRl
cmZlcmUgd2l0aCBUcmFtcC4KK1NlZSBidWcjNjU1NTEuIgorICAoc2tpcC11bmxlc3MgKGFu
ZCAoZXNoZWxsLXRlc3RzLXJlbW90ZS1hY2Nlc3NpYmxlLXApCisgICAgICAgICAgICAgICAg
ICAgIChleGVjdXRhYmxlLWZpbmQgImVjaG8iKSkpCisgIChsZXQgKChkZWZhdWx0LWRpcmVj
dG9yeSBlcnQtcmVtb3RlLXRlbXBvcmFyeS1maWxlLWRpcmVjdG9yeSkpCisgICAgKHdpdGgt
dGVtcC1lc2hlbGwKKyAgICAgKGVzaGVsbC1pbnNlcnQtY29tbWFuZCAic2V0IFBBVEggJyci
KQorICAgICAoZXNoZWxsLW1hdGNoLWNvbW1hbmQtb3V0cHV0CisgICAgICAoZm9ybWF0ICIl
cyBoZWxsbyIgKGV4ZWN1dGFibGUtZmluZCAiZWNobyIgdCkpCisgICAgICAiXFxgaGVsbG9c
biIpKSkpCisKIDs7OyBlc2gtcHJvYy10ZXN0cy5lbCBlbmRzIGhlcmUK

--------------NMbqtZYwucF18w7HJvlT1TE4--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 26 Aug 2023 21:29:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 17:29:12 2023
Received: from localhost ([127.0.0.1]:43553 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qa0qF-00038P-Ul
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 17:29:12 -0400
Received: from mout.gmx.net ([212.227.15.15]:57179)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jordan.t.wilson@HIDDEN>) id 1qa0qD-00038B-2Z
 for 65551 <at> debbugs.gnu.org; Sat, 26 Aug 2023 17:29:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com;
 s=s31663417; t=1693085337; x=1693690137; i=jordan.t.wilson@HIDDEN;
 bh=w0enFuCJeEHA9mfhrwir+9N145iBt+fNzDBKJXD7NIw=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date;
 b=aj1VoyA3itBsOEWOxVb2l+AAx4+3L8jyrnkEpTHcYSBoE4PL3vbI2wSlfzKH7gUv1DpSANW
 CvtUW2hBgYpn6eEmNf2dswSwfUFCQfFAS+EcHwopwSeYDBXXKStL9x0xiI7DNmqYQJheSiWmK
 QbuNgg/AazALkk46uKug0E0P/5jQ5yHjAhUcjcj9klrNYLm8YHcazHvNzCU6fCQy7fKB3w1Jb
 q3BlXVLCimoJ50fAmwwWxUKj7mVJJaH8KGXVbQ4QsFtqVtXP6Qz3CIOZ9e2qlSZbtDjS6cl6J
 AbkD3sjYgqQqNhs5vWHWGJGfJdcgvz4Zu3MTVW8IiuB/vOZW1kzQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from A715-WIN ([94.12.224.234]) by mail.gmx.net (mrgmx005
 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MLQxN-1qI4Lb3QGJ-00IYmX; Sat, 26
 Aug 2023 23:28:56 +0200
From: Jordan Wilson <jordan.t.wilson@HIDDEN>
To: Jim Porter <jporterbugs@HIDDEN>
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is
 not recognized as an internal or external command...
In-Reply-To: <8e61bce9-e818-c52c-7478-7c11452735ec@HIDDEN> (Jim Porter's
 message of "Sat, 26 Aug 2023 12:16:12 -0700")
References: <861qfpnb9y.fsf@HIDDEN>
 <8e61bce9-e818-c52c-7478-7c11452735ec@HIDDEN>
Date: Sat, 26 Aug 2023 22:28:56 +0100
Message-ID: <86il91o5lz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:xhpMMJbWfKP0AClysWN5tNbzuIm5xqVAhC32URmxHo47kn0YthF
 IoIAJQtAOrYEWYKmEc/TIAtyyo1y/1kVSJzWtguvlg8VzAK1LerwsW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+mOunF
 30YemaF5WZZR+7jlCLNEHDtsiRH/cBDG/bNjGlZJ4BGs5niMB9zx2l1ARUkbyAHkOllyM27y0
 sYUAMhG3CbwdE8VKuVV3OfHRmEE=
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 65551
Cc: 65551 <at> debbugs.gnu.org, michael.albinus@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi Jim,

On 2023-08-26 (Sat) at 12:16 (-0700), Jim Porter <jporterbugs@HIDDEN> w=
rote:
> Thanks for reporting this. I can reproduce this issue. Does evaluating t=
he
> following work?
>
>   (setf (alist-get 'tramp-login-program
>                    (alist-get "plink" tramp-methods nil nil #'equal))
>         (list (concat "\"" (executable-find "plink") "\"")))
>
> If so, I think I've identified the bug: in 'eshell-gather-process-output=
', we
> set the 'process-environment' to Eshell's environment variables. In a re=
mote
> directory, this includes the remote PATH. However, that confuses Tramp, =
which
> uses that remote PATH to look for the local "plink.exe".

I can confirm that snippet does resolve the problem.

=2D-
Jordan Wilson
    Sent from Gnus v5.13, GNU Emacs 29.1 on WINDOWS-NT




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 26 Aug 2023 19:16:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 15:16:28 2023
Received: from localhost ([127.0.0.1]:43451 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZylo-00088A-2v
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 15:16:28 -0400
Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:42055)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jporterbugs@HIDDEN>) id 1qZylk-00087w-RE
 for 65551 <at> debbugs.gnu.org; Sat, 26 Aug 2023 15:16:26 -0400
Received: by mail-pl1-x632.google.com with SMTP id
 d9443c01a7336-1c0bae4da38so13627515ad.0
 for <65551 <at> debbugs.gnu.org>; Sat, 26 Aug 2023 12:16:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693077373; x=1693682173;
 h=content-transfer-encoding:in-reply-to:from:references:to
 :content-language:subject:mime-version:date:message-id:from:to:cc
 :subject:date:message-id:reply-to;
 bh=EwfM2Nx5jh/z8ymY2Ygy+jWI5aYl+aJiCrO2gZFnWoM=;
 b=KDzQNxk1wu/+zpP/GyPDspLEKMJDs5b8rO4qbw3EQcOWwqCyw7UtSxAnFCrBt6x7IK
 SQcp2iHbz3ajQU6aI3gsGETL1XkWr7BmN6oWdAfzjRKMyrGMOMmM7rIZ5SnRn4QmtzVK
 W3/Gc89I/zLYufDi6Yb+K0TsJrpaDELRWKZrHrLWeIQdkwARAd7MXEnSCxT78xq5MgsG
 3ynmj25yNgiQBtqiVWuSn9mNWwV9ZAES8iumE0hu1ExN4sjgOJ6T4teUemFejLnbUDpr
 qvy0zGyU9iUiPxSTi/IuGF9mwupb2YVvHXGKBGqk21la3DTNQtl4j4yuz+b5I++0moeF
 nwBQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693077373; x=1693682173;
 h=content-transfer-encoding:in-reply-to:from:references:to
 :content-language:subject:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=EwfM2Nx5jh/z8ymY2Ygy+jWI5aYl+aJiCrO2gZFnWoM=;
 b=Tux9Qk9SaxBJ67QMXWEuycZxK3g4AdYSnaZ52VN6wbgWYFmvYV5A8E9XBBUERnPMIO
 4FTvgUYc3M4vyqpCC9yQxjBGBN30yAqzBNjUSG+B4qtDcIXkxtmcnAg1rzh3y9aQP83J
 JYeHRwkLoCw6UajgdFOSaujw7JjX28vKyHx3BiINjrbskISbfr2wzjkzjycigltw6TGg
 OcI0stKlIFZLpkTUQziJmPIfUE9fvuSn2UcU7IcGtP5R+UWKZwkAqzqzeWrVDra1QVYh
 x9jtJ9TUty1CLJbeXKcLnIdQcgNuMCoEePbL2Pq/vunDmtZzV4oLG5wej3hlM100UgnL
 dp+A==
X-Gm-Message-State: AOJu0YwQyJYmjeKsXHz2uBCsvI6xSKq/2hDBrhYcroYeFavOC/cGfRYW
 JOYZ05aXCb3/MsR8O9if2gc=
X-Google-Smtp-Source: AGHT+IFc209WoDky+RqruIxRVR3QYjdnhnPHSoh14dzLu6KI4fPpuV5RQTYwvJT1YRz2DuVtxsU3AA==
X-Received: by 2002:a17:902:e5c9:b0:1b7:ca9c:4f5c with SMTP id
 u9-20020a170902e5c900b001b7ca9c4f5cmr31814596plf.28.1693077373458; 
 Sat, 26 Aug 2023 12:16:13 -0700 (PDT)
Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com.
 [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id
 b19-20020a170902ed1300b001bb99ea5d02sm4082727pld.4.2023.08.26.12.16.12
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 26 Aug 2023 12:16:13 -0700 (PDT)
Message-ID: <8e61bce9-e818-c52c-7478-7c11452735ec@HIDDEN>
Date: Sat, 26 Aug 2023 12:16:12 -0700
MIME-Version: 1.0
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is not
 recognized as an internal or external command...
Content-Language: en-US
To: Jordan Wilson <jordan.t.wilson@HIDDEN>, 65551 <at> debbugs.gnu.org,
 michael.albinus@HIDDEN
References: <861qfpnb9y.fsf@HIDDEN>
From: Jim Porter <jporterbugs@HIDDEN>
In-Reply-To: <861qfpnb9y.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65551
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 8/26/2023 7:11 AM, Jordan Wilson wrote:
> I've found a bug in Eshell on MS-Windows on 29.1. This is a regression
> from 28.2. When connected to a remote machine using putty's "plink",
> using any commands on the remote machine (e.g. not built-in to eshell)
> prints this error in the eshell buffer (details replaced):

Thanks for reporting this. I can reproduce this issue. Does evaluating 
the following work?

   (setf (alist-get 'tramp-login-program
                    (alist-get "plink" tramp-methods nil nil #'equal))
         (list (concat "\"" (executable-find "plink") "\"")))

If so, I think I've identified the bug: in 
'eshell-gather-process-output', we set the 'process-environment' to 
Eshell's environment variables. In a remote directory, this includes the 
remote PATH. However, that confuses Tramp, which uses that remote PATH 
to look for the local "plink.exe".

Michael, what would be the best way to handle this? In Eshell, I want to 
be able to call 'make-process' to start a remote process using the local 
system's default 'process-environment', but for the remote process to 
see Eshell's modified environment variables. I see that there's 
'tramp-remote-process-environment', but I'm not sure that's the right 
thing for me to use. Do you have any ideas?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 26 Aug 2023 15:12:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 11:12:15 2023
Received: from localhost ([127.0.0.1]:43317 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZuxS-0001jR-Sv
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 11:12:15 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59740)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qZuxO-0001j9-O6
 for 65551 <at> debbugs.gnu.org; Sat, 26 Aug 2023 11:12:14 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qZuxD-00063w-WE; Sat, 26 Aug 2023 11:12:00 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=e+ISYNp19JNqnpUBTDgAivcQF37q8bzHNDIqo4cwntc=; b=apd/0ca9rY2E
 gjBCJDiFQnfobscO9JrW+64WEsjqruyCSWPsT918kEYdJvozPkBBCXcE9x4fg5fO5CawVFSS8hKvV
 xX2Q3m+vIKXCAltWja+c/0/HiXC7c/TsZf0ZlBEpmG4JOTpAcsWh3doHBxxFIScwVfee6Wv6vFRa/
 Au1AyHvc7W4EGnIGj/fs0+LQ0aN/Rfn3WOPuf1D888A9DtzN/boVphlmnpkuku+A8I+yrBTMlSdnj
 +WgKxYzm+JJwg9yuWCbN/FKevf9xKjiwcA2tGl56a0C7MPQQX/i0nnTurfpHB/g8IM/bSeQmhoK86
 K6PBv9oefQZwhzL2wwcPbw==;
Date: Sat, 26 Aug 2023 18:12:29 +0300
Message-Id: <83ledxltwi.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Jordan Wilson <jordan.t.wilson@HIDDEN>
In-Reply-To: <864jkldfmg.fsf@HIDDEN> (message from Jordan Wilson on Sat, 26
 Aug 2023 15:48:07 +0100)
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is
 not recognized as an internal or external command...
References: <861qfpnb9y.fsf@HIDDEN> <83msydlvaw.fsf@HIDDEN>
 <864jkldfmg.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 65551
Cc: 65551 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Jordan Wilson <jordan.t.wilson@HIDDEN>
> Cc: 65551 <at> debbugs.gnu.org
> Date: Sat, 26 Aug 2023 15:48:07 +0100
> 
> (oops, sorry Eli, didn't wide reply)
> 
> On 2023-08-26 (Sat) at 17:42 (+0300), Eli Zaretskii <eliz@HIDDEN> wrote:
> > Is plink on PATH on that Windows system?
> 
> Yes, it's on the Windows' machine I'm connecting from. Eshell
> successfully connects to the GNU/Linux machine using plink, but in the
> cases described it produces the error. I can use eshell built-in
> commands (like `ls' and `pwd') fine on the remote machine, but external
> commands on it produces the error.

Then I don't think I understand the backtrace you posted.  It seems to
indicate that Trump signals a "failed to connect" error, but the error
message you cited, i.e.

  'plink' is not recognised as an internal or external command, operable
  program or batch file.

is the message shown by the Windows cmd.exe shell, it is not a Tramp
error message.  So it looks like the backtrace does not really show
the relevant error?  Could you perhaps produce a backtrace that is
more relevant to the problem you are having?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 26 Aug 2023 14:48:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 10:48:23 2023
Received: from localhost ([127.0.0.1]:43290 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZuaM-00014z-N2
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 10:48:23 -0400
Received: from mout.gmx.net ([212.227.15.18]:60167)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jordan.t.wilson@HIDDEN>) id 1qZuaJ-00013y-An
 for 65551 <at> debbugs.gnu.org; Sat, 26 Aug 2023 10:48:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com;
 s=s31663417; t=1693061288; x=1693666088; i=jordan.t.wilson@HIDDEN;
 bh=3f8z2Ja/CXBl9oGdPhYy8/msWGTOJrhAs7f+oFkAZdQ=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date;
 b=i8qvWVzXDFMGtFew30DgbKpGK/jQF5Rfq62VVBupApXl5Qe54mEx75V2bCjDBQf/+IiZJGB
 1DbRFYQZkKUgMe8IUNGALUoOZhDGqPtjvsMQeo10t7Nb833l57xEvjrGi+rEw3qq4Rqm07r5h
 3WlBlGwk7MQuMLobbCuwyE9r4eOamodfmgc1cG77rF4LU0AyR3bTP0ppgnqm/xC3ZsfgBWwY5
 6NFcYdtdsS1UsX5lRg5LE53tlhJk3ODy4FXOd5rKC5I0XiLYyZOQMvCQSZKhWbaPIkWDYWYa9
 6ELYcA7veIDHMsBhIKnOPXDNv5LgzVUtG1Hy0cYYoKq8uWi6Es1A==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from A715-WIN ([94.12.224.234]) by mail.gmx.net (mrgmx005
 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MzQkE-1pnhgN46Bk-00vRzi; Sat, 26
 Aug 2023 16:48:08 +0200
From: Jordan Wilson <jordan.t.wilson@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is
 not recognized as an internal or external command...
In-Reply-To: <83msydlvaw.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 26 Aug
 2023 17:42:15 +0300")
References: <861qfpnb9y.fsf@HIDDEN> <83msydlvaw.fsf@HIDDEN>
Date: Sat, 26 Aug 2023 15:48:07 +0100
Message-ID: <864jkldfmg.fsf@HIDDEN>
User-Agent: Gnus/5.13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PgbHOluy24pDw6G79V9qfG9YK
 Ax58GNgIaK7sgPxHqmVKu0r0mT8wfTpft43o53Vx6526MOHuMpRPNz3nLocksNburkN51uMAL
 pLy1+SEmyC6Pi9iuMJc/ul3gdcqwm1apXLEaSrBoCUSneGyz3W1HrFqL5XwJqhtwr0vi90DZy
 dtKmPVVIN+I/5oTfRKn4xuSrrS5KV6nQB+IwgO9hWcmKkF3f9uugMOBdYnImezL2sGCQwYQF+
 E+6JwMOs0ImjtYBjEe1C+L1wuPQ=
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 65551
Cc: 65551 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

(oops, sorry Eli, didn't wide reply)

On 2023-08-26 (Sat) at 17:42 (+0300), Eli Zaretskii <eliz@HIDDEN> wrote:
> Is plink on PATH on that Windows system?

Yes, it's on the Windows' machine I'm connecting from. Eshell
successfully connects to the GNU/Linux machine using plink, but in the
cases described it produces the error. I can use eshell built-in
commands (like `ls' and `pwd') fine on the remote machine, but external
commands on it produces the error.

=2D-
Jordan Wilson
    Sent from Gnus v5.13, GNU Emacs 29.1 on WINDOWS-NT




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at 65551 <at> debbugs.gnu.org:


Received: (at 65551) by debbugs.gnu.org; 26 Aug 2023 14:42:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 10:42:02 2023
Received: from localhost ([127.0.0.1]:43285 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZuUD-0000rZ-Ln
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 10:42:02 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:42654)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qZuU8-0000rD-Oi
 for 65551 <at> debbugs.gnu.org; Sat, 26 Aug 2023 10:42:00 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qZuTx-0000pK-Vt; Sat, 26 Aug 2023 10:41:45 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=YGvagQu2dMBMp45xWGy5RjrfWU5Oy+PH0UwvpO3jEYs=; b=SPv6SYY1IPCa
 7PU0uE8YcSLrBT1YosKN2+DjLs4dRNuJygm4Cm0RjsYxBtd0PGP/+TFICZchxS/yl0oeBkv3/hdY5
 J3QEtW/SR0/Su3Wza5/9m59wMzQpf85vOsilb2tDcwXglvRTdHAl10x3cK4sQFDGrGrLPdGH7T7BE
 cn039narkEhjqoO/Rg04G0iHtzh7zI1J+rCO9kE7mIfeYXz+MpwCY4n/I08huqVGmn7OnyNCQLGCt
 3Ur6V5dRL9n2BOdEvHd6jz3kB77uPvbjm8m6mk3E1YoPIExuh5Q61wm3gQ920lw5YFc7uqWQDlaxw
 9GSMiKBO9hPIyfFTrB9NqQ==;
Date: Sat, 26 Aug 2023 17:42:15 +0300
Message-Id: <83msydlvaw.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Jordan Wilson <jordan.t.wilson@HIDDEN>
In-Reply-To: <861qfpnb9y.fsf@HIDDEN> (message from Jordan Wilson on Sat, 26
 Aug 2023 15:11:53 +0100)
Subject: Re: bug#65551: 29.1;
 Eshell on MS-Windows using plink: 'plink' is not recognized as an
 internal or external command...
References: <861qfpnb9y.fsf@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 65551
Cc: 65551 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Jordan Wilson <jordan.t.wilson@HIDDEN>
> Date: Sat, 26 Aug 2023 15:11:53 +0100
> 
> I've found a bug in Eshell on MS-Windows on 29.1. This is a regression
> from 28.2. When connected to a remote machine using putty's "plink",
> using any commands on the remote machine (e.g. not built-in to eshell)
> prints this error in the eshell buffer (details replaced):
> 
> plink -l username -ssh -t example.com " env 'TERM=dumb'
> 'PROMPT_COMMAND=' 'PS1=#$ ' /bin/sh -i " ** exit || exit
> 'plink' is not recognised as an internal or external command, operable
> program or batch file.

Is plink on PATH on that Windows system?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Aug 2023 14:12:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 10:12:28 2023
Received: from localhost ([127.0.0.1]:43264 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZu1b-00007T-Hn
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 10:12:28 -0400
Received: from lists.gnu.org ([2001:470:142::17]:50770)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jordan.t.wilson@HIDDEN>) id 1qZu1W-000077-Oc
 for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 10:12:26 -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 <jordan.t.wilson@HIDDEN>)
 id 1qZu1H-0002Vw-IZ
 for bug-gnu-emacs@HIDDEN; Sat, 26 Aug 2023 10:12:09 -0400
Received: from mout.gmx.net ([212.227.17.21])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jordan.t.wilson@HIDDEN>)
 id 1qZu1A-0004Xp-Pr
 for bug-gnu-emacs@HIDDEN; Sat, 26 Aug 2023 10:12:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com;
 s=s31663417; t=1693059113; x=1693663913; i=jordan.t.wilson@HIDDEN;
 bh=gw7R8s2svMM1sukXN6/we95EwiRqQSLsB3N+bwBL2oo=;
 h=X-UI-Sender-Class:From:To:Subject:Date;
 b=kb1Q+W1nBnzhOk+6V+Wvlyj8XcZRyENcxDrbuStlYHEJk/podB5988JQuGVRyVTsxsjnbEB
 QdRlB9T0v+q2MCPr/aUcLRUmyM4f17AI3a33FaR77KdaQLSSl9HuVotKRGWNdz+rxdbEV8z1j
 OYjQ1Y3YWG6JHk+MLArrMPBqwsXPx/j/rNugy9X4saqY/X+C02dQHpJHbDpWHjRWHIJwWYz3R
 LePf4Mj2uygBoa/FSZY/Di4u1H29UJbxruGnLmgQeZkQe93EwNYS15VcI5wbBhJlKoS1sl5Nj
 BnZAjzptDiLxTP95n4pQBMSqGtMrA5OMw/UcfOSEa+G0xkNoxTXg==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from A715-WIN ([94.12.224.234]) by mail.gmx.net (mrgmx105
 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MTiPl-1q8mNI1tdd-00U0NH for
 <bug-gnu-emacs@HIDDEN>; Sat, 26 Aug 2023 16:11:53 +0200
From: Jordan Wilson <jordan.t.wilson@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.1; Eshell on MS-Windows using plink: 'plink' is not recognized
 as an internal or external command...
Date: Sat, 26 Aug 2023 15:11:53 +0100
Message-ID: <861qfpnb9y.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:qs7Uy1hhoKzQ2AOqkmlVtUCjDDSDX5AwTtnKsh24p6/ToITR0Hn
 NdBg5sps6Kfk/Hcq+prne4/J804zBU/B2zLBHbNzgWS0kwSbf9zXxLFJDnPBOdIOQUL+Joo
 eJutc2idKnN4jbdRtOSuLeVAWosTLhQilKI+diWzRPB3MSqs320PefPmAorpNEL5OovNc6k
 xhO6WKYP9cBaf0pNoe6cA==
X-Spam-Flag: NO
UI-OutboundReport: not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Received-SPF: pass client-ip=212.227.17.21;
 envelope-from=jordan.t.wilson@HIDDEN; helo=mout.gmx.net
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hi all,

I've found a bug in Eshell on MS-Windows on 29.1. This is a regression
from 28.2. When connected to a remote machine using putty's "plink",
using any commands on the remote machine (e.g. not built-in to eshell)
prints this error in the eshell buffer (details replaced):

plink -l username -ssh -t example.com " env 'TERM=3Ddumb'
'PROMPT_COMMAND=3D' 'PS1=3D#$ ' /bin/sh -i " ** exit || exit
'plink' is not recognised as an internal or external command, operable
program or batch file.

and the following in the minibuffer:
Tramp failed to connect.  If this happens repeatedly, try
    "M-x tramp-cleanup-this-connection"

An keyboard input after this causes the eshell buffer to be killed, and th=
e
"Tramp failed to connect..." message to also be inserted into the next buf=
fer.

Recipe, starting from "emacs -Q":
1) open eshell
2) connect to a remote host using plink
- cd /plink:username@HIDDEN:/home/username/
3) ./test.sh (executable script)
or...
3) *ls
or...
3) (any remote command not built-in into Emacs)

Below is the backtrace produced from this (using
`toggle-debug-on-error') again with details replaced.

Thanks,
Jordan.

Debugger entered--Lisp error: (file-error "Tramp failed to connect.  If th=
is happens repeated...")
  signal(file-error ("Tramp failed to connect.  If this happens repeated..=
."))
  tramp-error(nil file-error "Tramp failed to connect.  If this happens re=
peated...")
  tramp-signal-hook-function(file-error ("Tramp failed to connect.  If thi=
s happens repeated..."))
  signal(file-error ("Tramp failed to connect.  If this happens repeated..=
."))
  tramp-maybe-open-connection((tramp-file-name #("plink" 0 5 (escaped t)) =
#("username" 0 5 (escaped t)) nil #("example.com" 0 18 (escaped t)) nil ni=
l nil))
  tramp-send-command((tramp-file-name #("plink" 0 5 (escaped t)) #("userna=
me" 0 5 (escaped t)) nil #("example.com" 0 18 (escaped t)) nil nil nil) "e=
cho $$ 2>/dev/null; echo tramp_exit_status $?")
  tramp-send-command-and-check((tramp-file-name #("plink" 0 5 (escaped t))=
 #("username" 0 5 (escaped t)) nil #("example.com" 0 18 (escaped t)) nil n=
il nil) "echo $$")
  tramp-barf-unless-okay((tramp-file-name #("plink" 0 5 (escaped t)) #("us=
ername" 0 5 (escaped t)) nil #("example.com" 0 18 (escaped t)) nil nil nil=
) "echo $$" "`%s' returns with error" "echo $$")
  tramp-send-command-and-read((tramp-file-name #("plink" 0 5 (escaped t)) =
#("username" 0 5 (escaped t)) nil #("example.com" 0 18 (escaped t)) nil ni=
l nil) "echo $$")
  tramp-sh-handle-make-process(:name "test.sh" :buffer #<killed buffer> :c=
ommand ("/home/username/test.sh") :filter eshell-output-filter :sentinel e=
shell-sentinel :connection-type nil :stderr nil :file-handler t)
  tramp-sh-file-name-handler(make-process :name "test.sh" :buffer #<killed=
 buffer> :command ("/home/username/test.sh") :filter eshell-output-filter =
:sentinel eshell-sentinel :connection-type nil :stderr nil :file-handler t=
)
  apply(tramp-sh-file-name-handler make-process (:name "test.sh" :buffer #=
<killed buffer> :command ("/home/username/test.sh") :filter eshell-output-=
filter :sentinel eshell-sentinel :connection-type nil :stderr nil :file-ha=
ndler t))
  tramp-file-name-handler(make-process :name "test.sh" :buffer #<killed bu=
ffer> :command ("/home/username/test.sh") :filter eshell-output-filter :se=
ntinel eshell-sentinel :connection-type nil :stderr nil :file-handler t)
  eshell-gather-process-output("/plink:username@HIDDEN:/home/username=
/test.s..." nil)
  eshell-external-command("./test.sh" nil)
  eshell-plain-command("./test.sh" nil)
  eshell-named-command("./test.sh")
  eval((eshell-named-command '"./test.sh"))
  eshell-do-eval((eshell-named-command '"./test.sh") nil)
  eshell-do-eval((prog1 (eshell-named-command '"./test.sh") (mapc #'funcal=
l eshell-this-command-hook)) nil)
  (condition-case err (eshell-do-eval '(prog1 (eshell-named-command '"./te=
st.sh") (mapc #'funcall eshell-this-command-hook)) nil) ((debug error) (ma=
pc #'funcall eshell-this-command-hook) (eshell-errorn (error-message-strin=
g err)) (eshell-close-handles 1)))
  eval((condition-case err (eshell-do-eval '(prog1 (eshell-named-command '=
"./test.sh") (mapc #'funcall eshell-this-command-hook)) nil) ((debug error=
) (mapc #'funcall eshell-this-command-hook) (eshell-errorn (error-message-=
string err)) (eshell-close-handles 1))))
  eshell-do-eval((condition-case err (eshell-do-eval '(prog1 (eshell-named=
-command '"./test.sh") (mapc #'funcall eshell-this-command-hook)) nil) ((d=
ebug error) (mapc #'funcall eshell-this-command-hook) (eshell-errorn (erro=
r-message-string err)) (eshell-close-handles 1))) nil)
  #f(compiled-function () #<bytecode -0x12092870cc88ed70>)()
  funcall(#f(compiled-function () #<bytecode -0x12092870cc88ed70>))
  (let ((eshell-this-command-hook '(ignore))) (funcall '#f(compiled-functi=
on () #<bytecode -0x12092870cc88ed70>)))
  eval((let ((eshell-this-command-hook '(ignore))) (funcall '#f(compiled-f=
unction () #<bytecode -0x12092870cc88ed70>))))
  eshell-do-eval((let ((eshell-this-command-hook '(ignore))) (condition-ca=
se err (eshell-do-eval '(prog1 (eshell-named-command '"./test.sh") (mapc #=
'funcall eshell-this-command-hook)) nil) ((debug error) (mapc #'funcall es=
hell-this-command-hook) (eshell-errorn (error-message-string err)) (eshell=
-close-handles 1)))) nil)
  eshell-do-eval((progn (let ((eshell-this-command-hook '(ignore))) (condi=
tion-case err (eshell-do-eval '(prog1 (eshell-named-command ...) (mapc ...=
 eshell-this-command-hook)) nil) ((debug error) (mapc #'funcall eshell-thi=
s-command-hook) (eshell-errorn (error-message-string err)) (eshell-close-h=
andles 1))))) nil)
  (catch 'top-level (eshell-do-eval '(progn (let ((eshell-this-command-hoo=
k '...)) (condition-case err (eshell-do-eval '... nil) ((debug error) (map=
c ... eshell-this-command-hook) (eshell-errorn ...) (eshell-close-handles =
1))))) nil))
  eval((catch 'top-level (eshell-do-eval '(progn (let ((eshell-this-comman=
d-hook ...)) (condition-case err (eshell-do-eval ... nil) (... ... ... ...=
)))) nil)))
  eshell-do-eval((catch 'top-level (eshell-do-eval '(progn (let ((eshell-t=
his-command-hook ...)) (condition-case err (eshell-do-eval ... nil) (... .=
.. ... ...)))) nil)) nil)
  eshell-do-eval((progn 'nil (catch 'top-level (eshell-do-eval '(progn (le=
t (...) (condition-case err ... ...))) nil)) (run-hooks 'eshell-post-comma=
nd-hook)) nil)
  #f(compiled-function () #<bytecode -0x12092870cc88ed70>)()
  funcall(#f(compiled-function () #<bytecode -0x12092870cc88ed70>))
  (let ((eshell-current-handles '[nil (t . 1) (t . 1)]) (eshell-current-su=
bjob-p 'nil)) (funcall '#f(compiled-function () #<bytecode -0x12092870cc88=
ed70>)))
  eval((let ((eshell-current-handles '[nil (t . 1) (t . 1)]) (eshell-curre=
nt-subjob-p 'nil)) (funcall '#f(compiled-function () #<bytecode -0x1209287=
0cc88ed70>))))
  eshell-do-eval((let ((eshell-current-handles '[nil (t . 1) (t . 1)]) esh=
ell-current-subjob-p) (progn 'nil (catch 'top-level (eshell-do-eval '(prog=
n (let ... ...)) nil)) (run-hooks 'eshell-post-command-hook))))
  eshell-resume-eval()
  eshell-eval-command((let ((eshell-current-handles '[nil (t . 1) (t . 1)]=
) eshell-current-subjob-p) (progn 'nil (catch 'top-level (eshell-do-eval '=
(progn (let ... ...)) nil)) (run-hooks 'eshell-post-command-hook))) "./tes=
t.sh ")
  eshell-send-input(nil)
  funcall-interactively(eshell-send-input nil)
  #<subr call-interactively>(eshell-send-input nil nil)
  call-interactively@ido-cr+-record-current-command(#<subr call-interactiv=
ely> eshell-send-input nil nil)
  apply(call-interactively@ido-cr+-record-current-command #<subr call-inte=
ractively> (eshell-send-input nil nil))
  call-interactively(eshell-send-input nil nil)
  command-execute(eshell-send-input)


In GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-08-02 built on
 AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.19045
System Description: Microsoft Windows 10 Home (v10.0.2009.19045.3324)

Configured using:
 'configure --with-modules --without-dbus --with-native-compilation=3Daot
 --without-compress-install --with-tree-sitter CFLAGS=3D-O2'

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB

Important settings:
  value of $LANG: ENG
  locale-coding-system: cp1252

Major mode: Messages

Minor modes in effect:
  immortal-scratch-mode: t
  emms-mode-line-mode: t
  emms-playing-time-display-mode: t
  emms-playing-time-mode: t
  shell-dirtrack-mode: t
  recentf-mode: t
  global-anzu-mode: t
  anzu-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  winner-mode: t
  delete-selection-mode: t
  cua-mode: t
  ido-everywhere: t
  pdf-occur-global-minor-mode: t
  windmove-mode: t
  server-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: (only . t)
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t


=2D-
Jordan Wilson
    Sent from Gnus v5.13, GNU Emacs 29.1 on WINDOWS-NT




Acknowledgement sent to Jordan Wilson <jordan.t.wilson@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#65551; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 28 Aug 2023 17:45:02 UTC

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