From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?UTF-8?Q?=E2=80=98c:/home/jordan/test.sh=E2=80=99:?= No such file or directory Date: Fri, 28 Dec 2018 20:48:44 +0200 Message-ID: <83sgyh5vxv.fsf@gnu.org> References: <87pntyanho.fsf@gmx.com> <83zhsxap9i.fsf@gnu.org> <875zvluaby.fsf@gmx.de> <83r2e9alte.fsf@gnu.org> <87woo0s9g1.fsf@gmx.com> <83woo08cb7.fsf@gnu.org> <874lazqekr.fsf@gmx.de> <8336qi6p9r.fsf@gnu.org> <87sgyhtvjc.fsf@gmx.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1546024081 26556 195.159.176.226 (28 Dec 2018 19:08:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Dec 2018 19:08:01 +0000 (UTC) Cc: 33791@debbugs.gnu.org, michael.albinus@gmx.de To: Jordan Wilson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 28 20:07:57 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcxUD-0006lK-24 for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Dec 2018 20:07:57 +0100 Original-Received: from localhost ([127.0.0.1]:32952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcxWJ-0001Ro-Te for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Dec 2018 14:10:07 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcxVd-0000rN-2z for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2018 14:09:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcxCu-0007Mc-CG for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2018 13:50:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58394) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gcxCs-0007LY-Q4 for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2018 13:50:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gcxCs-0007dg-Gj for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2018 13:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Dec 2018 18:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33791 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33791-submit@debbugs.gnu.org id=B33791.154602295929303 (code B ref 33791); Fri, 28 Dec 2018 18:50:02 +0000 Original-Received: (at 33791) by debbugs.gnu.org; 28 Dec 2018 18:49:19 +0000 Original-Received: from localhost ([127.0.0.1]:40653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcxC9-0007cX-3a for submit@debbugs.gnu.org; Fri, 28 Dec 2018 13:49:19 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcxC7-0007cK-4e for 33791@debbugs.gnu.org; Fri, 28 Dec 2018 13:49:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcxBs-0005vR-Hg for 33791@debbugs.gnu.org; Fri, 28 Dec 2018 13:49:09 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcxBs-0005vK-Ce; Fri, 28 Dec 2018 13:49:00 -0500 Original-Received: from [176.228.60.248] (port=1058 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gcxBr-00055T-SH; Fri, 28 Dec 2018 13:49:00 -0500 In-reply-to: <87sgyhtvjc.fsf@gmx.com> (message from Jordan Wilson on Fri, 28 Dec 2018 17:23:35 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:153967 Archived-At: > From: Jordan Wilson > Cc: Michael Albinus , 33791@debbugs.gnu.org > Date: Fri, 28 Dec 2018 17:23:35 +0000 > > On 2018-12-28 (Fri) at 10:15 (+0200), Eli Zaretskii wrote: > > Jordan, can you test this, please? If this works for you, we will > > install this on the emacs-26 branch as well. > > The patch you provided fixes the "cd" problem for me. The one I porovided or the variation proposed by Michael? Which one did you try? > The "env: ‘c:/home/jordan/test/test.sh’: No such file or directory" > problem is still there though. > > Here's what I've found about that bug: the program path that > `eshell-gather-process-output' passes to `start-file-process' is run > through `expand-file-name' to remove potential relative paths. Because > the path begins with `/', "c:" is prepended on Windows (from looking at > the C source, I gather this is the function's expected behaviour). > > As a test, if I wrap the "(expand-file-name command)" in "(substring > ... 2)", which in this instance removes the prepended "c:/", doing > "./test.sh" in eshell works as expected. > > Any ideas? Can you provide a reproducing recipe starting from "emacs -Q"?