From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#65551: 29.1; Eshell on MS-Windows using plink: 'plink' is not recognized as an internal or external command... Date: Sun, 27 Aug 2023 19:50:44 +0200 Message-ID: <87sf84s7bf.fsf@gmx.de> References: <861qfpnb9y.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8428"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65551@debbugs.gnu.org, Jim Porter To: Jordan Wilson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 27 19:52:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qaJvp-0001vj-QS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Aug 2023 19:52:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaJva-0005NC-Hr; Sun, 27 Aug 2023 13:51:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaJvY-0005N0-Gm for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 13:51:56 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qaJvY-0006tu-8v for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 13:51:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qaJvd-0004fz-R9 for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 13:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Aug 2023 17:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65551 X-GNU-PR-Package: emacs Original-Received: via spool by 65551-submit@debbugs.gnu.org id=B65551.169315866317889 (code B ref 65551); Sun, 27 Aug 2023 17:52:01 +0000 Original-Received: (at 65551) by debbugs.gnu.org; 27 Aug 2023 17:51:03 +0000 Original-Received: from localhost ([127.0.0.1]:46189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaJug-0004eT-SY for submit@debbugs.gnu.org; Sun, 27 Aug 2023 13:51:03 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:39041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaJuc-0004dv-CY for 65551@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@gmx.de; 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 Original-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 In-Reply-To: <861qfpnb9y.fsf@gmx.com> (Jordan Wilson's message of "Sat, 26 Aug 2023 15:11:53 +0100") X-Provags-ID: V03:K1:DzvC+m6fPQIjMPB/gISkQqpDSvrcez+I/6pl2iUxWYehWHw0/E/ AsqbhEeGDq8+2Y/O32b6c1AsbpZkMI+3rqsC8a/41r+zBd96GLJ9/R87FiNP/DCdPC31gwJ W/TiShPNr4Qaf3PsXCNMca2I/0V8Xc6cUC5M9mrZ3dYtavcOAzSVBRZ3Wr0NBGWhkczQFcn PdBBHypSyZI8WM0Hh+ZnA== UI-OutboundReport: notjunk:1;M01:P0:Y9mVPdKO5ig=;abvcl//teueAau0IuyioCnjxQVN 4bw/si0MX4X2y7zM8H05MR5DxC2+ijFjWUZYzO1rS9csM1EqsWRtYyqaXk9Cu/L8g+Z5Vou+y As9AQLe4oumLZobO0TyWnSjSqEnOcT3yI5l4bfQ+jZ46D418jfAeENrKuFbzjmsXVWiuFTomQ /7R2R+9ATt4rnBReNnQ1UK+bg8nIZvIXHOT3YSKTH22dbdmhHe6tm7xxKlzohSWvbZrhf1i/4 SpFkP8vUwpRokDrPueqXe9ceQ2NE25QpftmurDbkTRYNek+bOHHwoMekxah/+CJ5cZXOt3h1z 3J5OQDN6AwSINcxU1rCYiil15gi58lBciVIGWEIQEavZqUgAgE81com7K5HMe9GM3VUPHtM4K 23gkU2kBFbzRiMnnjC2bEfZ4C+YPZ03XpMzLF+TagX07yNsPiI8JVm9OSovR2i4FPmeci7LCy gqfpP4+luaDv6qWpoSrMUzuFprxym68aqEwvDSkSOr51/OkpjY83lh4FtRxlLbOLBnbgUB/2d VK9SZlEpPagv5k8gSjeVza5Zc2/DUeyxdLjzhcj1oyJ5GKed5fP+PpTAGH967svvkxCEvBk+C +UpoFWjA/mXgbBsclxJk4F92by3uk/jTtoGzQvfojAwlPkl+XWfggLqaUKA2s0uR4G1igwMY0 A8JUJZt1zc/yjcQwSDCM5OqUktjhdAY6PJ4ib6mYKh1AhXiC3m4j6Fhcv2U8wFg0f2ur4Drtv TztAhAKx52siSEh3EEfRPQiMmUpl7lxhVHXCdm6K87I8ktEUT87QHXIu1Ad03tF1Xot4uDHM X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268578 Archived-At: Jordan Wilson 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@example.com:/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 # :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@example.com:/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.