From unknown Sun Aug 10 20:05:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33791 <33791@debbugs.gnu.org> To: bug#33791 <33791@debbugs.gnu.org> Subject: Status: 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 Reply-To: bug#33791 <33791@debbugs.gnu.org> Date: Mon, 11 Aug 2025 03:05:42 +0000 retitle 33791 26.1; Eshell on Windows connecting to GNU/Linux machine using= TRAMP and plink: env: =E2=80=98c:/home/jordan/test.sh=E2=80=99: No such fi= le or directory reassign 33791 emacs submitter 33791 Jordan Wilson severity 33791 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 18 10:01:19 2018 Received: (at submit) by debbugs.gnu.org; 18 Dec 2018 15:01:19 +0000 Received: from localhost ([127.0.0.1]:53550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gZGs2-00059I-Vs for submit@debbugs.gnu.org; Tue, 18 Dec 2018 10:01:19 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gZGs1-000596-KQ for submit@debbugs.gnu.org; Tue, 18 Dec 2018 10:01:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZGrs-0005Mp-VY for submit@debbugs.gnu.org; Tue, 18 Dec 2018 10:01:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45306) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gZGrn-0005KG-An for submit@debbugs.gnu.org; Tue, 18 Dec 2018 10:01:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZGrh-0003jM-K0 for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2018 10:01:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZGrd-00055t-ET for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2018 10:00:57 -0500 Received: from mout.gmx.net ([212.227.17.22]:43313) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZGrT-0004z4-9l for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2018 10:00:45 -0500 Received: from A715-WIN ([90.221.3.153]) by mail.gmx.com (mrgmx101 [212.227.17.174]) with ESMTPSA (Nemesis) id 0M2Glc-1hRNTs3HEq-00s5F5 for ; Tue, 18 Dec 2018 16:00:36 +0100 From: Jordan Wilson To: bug-gnu-emacs@gnu.org Subject: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjordan=2Ftest=2Esh?= =?utf-8?Q?=E2=80=99=3A?= No such file or directory Date: Tue, 18 Dec 2018 15:00:35 +0000 Message-ID: <87pntyanho.fsf@gmx.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:3S/Pv6WTMz4zLUL8naSVUy1p8UGQKow+f2wvX54ctFkHo9+aW/D eF16enrcMWTTZ0iKkf3IVhAb99oIg28qg5E8zVveT8s14tK8FV6bEmdJmG4zlCXbsC9TrQN pG6iozjlErTW12AuVEyuhlq0ITvZR2jQm3lS0zV+NdC+J5tLKupPZ8csgAD0VKJtewNmdTd FX6NU6hfGDo45H9OMuFvg== X-UI-Out-Filterresults: notjunk:1;V03:K0:rRaj2906GZs=:vJTlPOjovGdoHqe/2uO7cT iGqBU479pk8I9Jy6kjYg/EUdgo/ZVz+c25cgdFlEaEK1OiN25nI+ZCA8QF/i/iOdT2q1ZZarf M7If8673If6frO6RASOi2BJQbKDHrPEsBMZBGQ20wephgUh9x6QCUnnhO+7YlJcVFOk7HEZ2o puelH4SIIwb0f3XsTNynkugLca/Nidm4Xd0PiznERHwqub17v3CEiuFUm6nlMb10Z1UD3dgsY o7d9JEuWV+a4gF8hzvjNHlWkwbcCCZA4uSdp2G/08rE/dX+AsiajD010e8NB+8WZe/Bc9oPcy sUK/TYLTkyz5WiMGh7EAuN6XMtiDIUzodmFKxIeARuL+Ypf7L0h4njj1QdNtu+RAT8zgH4ytT R8LZvkCC0NARkX80XNBUYNATQzXBPGg1AMt3T+QfebmFJeP+22RSoMV1GqDO1unT1r9Q5S343 FluIp01+E4XTUWIFskykVLMZ/j9K/40Tltn69NAtlfs/6TdCBxZit77pBv4wkxkK9417oBHh3 3b1Ifu9b6Cz7NRzz7+41HWpsyFtPtl2uEChg+RQzhy7gTF1QJzQSJPLCrq0Lhsa4hjE2JJXQC Z1ezzSzIqIRcpe0gM3FfO7f93l0zUIzy7cIuWWZNSHprYnzFfcnzBYAlkbSiWq2weDqFF9eAH 8DRYVp06hEYSBfNVi2E53O4T2l43mFR5FriE3GD+bOINLrehFUiRsb3L/uC291SF07/obc3KO WwhFqvxgR3e608yMhvOHNegdDMtJaIb/4aGbItAK976KxUkxxQSM82ml+gsVf+Q0RVZs326Yt PothU80U3VCkjPjluxsnVwkSdmyeMZrvB0/OL7FMdS5vThmPO97F3Xc3RzoMJHgXo0onknS6F 3jvhpfR1XwFR2WlcB76eOTNr1egMGvzvc/kjGkZLCQhWj+SNp4MvQ7VEvF2bqDLWFimEnHwoF K9mqyY/tTcg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) Hi, I'm running Emacs 26.1 on Windows 10. I've replicated this with "emacs -Q". When I'm connected to my GNU/Linux machine (using TRAMP and plink) with eshell, I can't run executables in the local directory. Doing "./test.sh" returns "env: =E2=80=98c:/home/jordan/test.sh=E2=80=99: No such= file or directory".=20=20 I also can't navigate properly using `cd', etc. It returns "No such directory found via CDPATH environment variable". Here's an example: c:/Users/Jordan $ /plink:jordan@domain.com:/home/jordan/test /plink:jordan@domain.com:/home/jordan/test $ ls test2 test.sh /plink:jordan@domain.com:/home/jordan/test $ ./test.sh env: =E2=80=98c:/home/jordan/test.sh=E2=80=99: No such file or direc= tory /plink:jordan@domain.com:/home/jordan/test $ cd test2 No such directory found via CDPATH environment variable /plink:jordan@domain.com:/home/jordan/test $ cd test2/ No such directory found via CDPATH environment variable /plink:jordan@domain.com:/home/jordan/test/ $=20 Thanks I don't have these problems trying to connect to "domain.com" this way on my GNU/Linux install. I've tried the 26.2 pretest on Windows, and I'm having the same problem. In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-29 built on TPW550S Windowing system distributor 'Microsoft Corp.', version 10.0.17134 Configured using: 'configure --without-compress-install --without-dbus --with-modules 'CFLAGS=3D -O2 -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS LCMS2 Important settings: value of $LANG: ENG locale-coding-system: cp1252 Major mode: Eshell --=20 Jordan Wilson Sent from Gnus v5.13, GNU Emacs 26.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 22 04:24:04 2018 Received: (at 33791) by debbugs.gnu.org; 22 Dec 2018 09:24:04 +0000 Received: from localhost ([127.0.0.1]:59142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gadVs-0003nU-EF for submit@debbugs.gnu.org; Sat, 22 Dec 2018 04:24:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gadVq-0003n1-ID for 33791@debbugs.gnu.org; Sat, 22 Dec 2018 04:24:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gadVh-0005hn-FT for 33791@debbugs.gnu.org; Sat, 22 Dec 2018 04:23:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gadVh-0005hW-6L; Sat, 22 Dec 2018 04:23:53 -0500 Received: from [176.228.60.248] (port=3540 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gadVg-0007Vd-QP; Sat, 22 Dec 2018 04:23:53 -0500 Date: Sat, 22 Dec 2018 11:23:37 +0200 Message-Id: <83zhsxap9i.fsf@gnu.org> From: Eli Zaretskii To: Jordan Wilson , Michael Albinus In-reply-to: <87pntyanho.fsf@gmx.com> (message from Jordan Wilson on Tue, 18 Dec 2018 15:00:35 +0000) Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjordan=2Ftest=2Esh=E2=80=99=3A?= No such file or directory References: <87pntyanho.fsf@gmx.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33791 Cc: 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Jordan Wilson > Date: Tue, 18 Dec 2018 15:00:35 +0000 > > I'm running Emacs 26.1 on Windows 10. I've replicated this with "emacs > -Q". > > When I'm connected to my GNU/Linux machine (using TRAMP and plink) with > eshell, I can't run executables in the local directory. Doing > "./test.sh" returns "env: ‘c:/home/jordan/test.sh’: No such file or > directory". I cannot reproduce this, but I'm not on Windows 10. > I also can't navigate properly using `cd', etc. It returns "No such > directory found via CDPATH environment variable". This I can reproduce. The corresponding command, eshell/cd, doesn't seem to support remote directories. Michael, can you look into this? > Here's an example: > > c:/Users/Jordan $ /plink:jordan@domain.com:/home/jordan/test > /plink:jordan@domain.com:/home/jordan/test $ ls > test2 test.sh > /plink:jordan@domain.com:/home/jordan/test $ ./test.sh > env: ‘c:/home/jordan/test.sh’: No such file or directory What is in test.sh? Did you make that script executable? From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 22 05:26:04 2018 Received: (at 33791) by debbugs.gnu.org; 22 Dec 2018 10:26:04 +0000 Received: from localhost ([127.0.0.1]:59178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaeTs-0007Gz-5e for submit@debbugs.gnu.org; Sat, 22 Dec 2018 05:26:04 -0500 Received: from mout.gmx.net ([212.227.15.18]:37411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaeTp-0007GP-Rx for 33791@debbugs.gnu.org; Sat, 22 Dec 2018 05:26:02 -0500 Received: from detlef.gmx.de ([213.220.148.153]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MhAAr-1goB193sEj-00MNx9; Sat, 22 Dec 2018 11:25:55 +0100 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory References: <87pntyanho.fsf@gmx.com> <83zhsxap9i.fsf@gnu.org> Date: Sat, 22 Dec 2018 11:25:53 +0100 In-Reply-To: <83zhsxap9i.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 22 Dec 2018 11:23:37 +0200") Message-ID: <875zvluaby.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:SybeQ9tXYHxVRZ7K1HtDltA2ZlhJQliiGn0U4PI8DtXsRJjMPH6 8hlnoL/P6f6PRIsz6d60g+4dCC+MH6xJ5+mRpYjzEdUwHC3So4T/Gu9TJDMAhDNkUWZMSEP DGwW9GBuOTE4ErhqJZq5l2wl+17vTxYHAk361du2yxLSYfRWavsEOBBSUr1hFTe/j6XcTyg G7NaBKPnVgypcbCUwbgjQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:wy/9eY2IsKw=:1+grlgJTWfaYpK3fJFzGtv owd4iKpeZR/rlCJbdkidE761Khk2f1JJm8FoPiEFNYhRx1IkJ99wOM5KLxjDM3JgVnskBQfz0 pObaynoUQTYjtJa4sy7YkePLbFKQODHlpAZMXddZykwMbXRrmTNpMvZBUrJ9gQw81C1KNjhge kkRRio5Gi7wB9qGO/lV1PIPIpb2OsiT+bpgYFYy4siHwfZsdXT41aQyTGkGUxtNOd8kkKriq5 kOt2nOJJ5vtNEzEb/rrJ4McVEA7VR9Vea3oHbZX7PyH0qzbWOiknVroIsqXO9NrmCyiP5Hc8p 9KhpTOEG8beyNq0rUt6Cj9KXQ+e9m6rnpsG9HtU56sylwNRWyD7vIh8tnhszIn1jKajDrp9BW rxs6/T5cnT8ApFLbZqcN62ZRjmAyfpN+y2WwWTHYN9CZ8yQm+/FJRRSIuZouPHuT00zQbUZjQ iuscOLoPbXO1VrS9lyMjBGqpy5rTi8yqcRp0AILloArbfz6EecRvTE0vDc8Dw5wnkCdgGX3Pu WpfurEnC9clRvhjSnSxw7e1wx9sSl3fIAf/W1rCYsd7g7PNchgEgPKQo5b//I0H7mjCCiZ1QH v+wP4V4TXthu0k4FDlTW4WAaUaARztdXWDucovQ5PUjckRrg+Fbul/h9Wa/jBmveoIL8ZXk6M TSYvwuXDJz/RKjClCjw9NA/AMSr4/oefIDSC2PB1z7Rw2K3pU3wGiTnBJZJWQVsGx4ft9TcOB gZWKvVlGWbeGPoVvYLGpZSqkXylNJUIwuDAogY8u9Ins6o2j5S3mvrNeIilkCMMwoIv6uO88G D0705MwKf4sh5TnT+Xa2nD4dj0iNfFI7bHjNygedxmcEIWqgTPGb+etIjYv4n3BRV/GZdIY3k hJ9VAwSY4ftdtjqvrFRJQiaWl5imkaXqYqCP61MKlUI1Q53t42A94Ouna+cj4FnZL+XyhLlRf QE/ThbXqL1A== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: Jordan Wilson , 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: >> I also can't navigate properly using `cd', etc. It returns "No such >> directory found via CDPATH environment variable". > > This I can reproduce. The corresponding command, eshell/cd, doesn't > seem to support remote directories. Michael, can you look into this? I'll try. When I find a Windows machine. Isn't this bug#24787? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 22 05:38:32 2018 Received: (at 33791) by debbugs.gnu.org; 22 Dec 2018 10:38:32 +0000 Received: from localhost ([127.0.0.1]:59191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaefv-0007cb-Qe for submit@debbugs.gnu.org; Sat, 22 Dec 2018 05:38:31 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaefv-0007cP-5a for 33791@debbugs.gnu.org; Sat, 22 Dec 2018 05:38:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaefl-0002Kr-Gp for 33791@debbugs.gnu.org; Sat, 22 Dec 2018 05:38:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaefl-0002Kj-EA; Sat, 22 Dec 2018 05:38:21 -0500 Received: from [176.228.60.248] (port=4809 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gaefl-0006JP-22; Sat, 22 Dec 2018 05:38:21 -0500 Date: Sat, 22 Dec 2018 12:38:05 +0200 Message-Id: <83r2e9alte.fsf@gnu.org> From: Eli Zaretskii To: Michael Albinus In-reply-to: <875zvluaby.fsf@gmx.de> (message from Michael Albinus on Sat, 22 Dec 2018 11:25:53 +0100) Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory References: <87pntyanho.fsf@gmx.com> <83zhsxap9i.fsf@gnu.org> <875zvluaby.fsf@gmx.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33791 Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Michael Albinus > Cc: Jordan Wilson , 33791@debbugs.gnu.org > Date: Sat, 22 Dec 2018 11:25:53 +0100 > > Eli Zaretskii writes: > > >> I also can't navigate properly using `cd', etc. It returns "No such > >> directory found via CDPATH environment variable". > > > > This I can reproduce. The corresponding command, eshell/cd, doesn't > > seem to support remote directories. Michael, can you look into this? > > I'll try. When I find a Windows machine. > > Isn't this bug#24787? Yes, definitely looks like it. But I don't think the discussion of that bug ended with any conclusions wrt how to fix it, did it? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 22 07:35:57 2018 Received: (at 33791) by debbugs.gnu.org; 22 Dec 2018 12:35:57 +0000 Received: from localhost ([127.0.0.1]:59219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gagVY-00042L-Om for submit@debbugs.gnu.org; Sat, 22 Dec 2018 07:35:56 -0500 Received: from mout.gmx.net ([212.227.15.18]:38679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gagVX-000429-Q6 for 33791@debbugs.gnu.org; Sat, 22 Dec 2018 07:35:56 -0500 Received: from detlef.gmx.de ([213.220.148.153]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M1Wcz-1hPkj609yT-00tPOG; Sat, 22 Dec 2018 13:35:49 +0100 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory References: <87pntyanho.fsf@gmx.com> <83zhsxap9i.fsf@gnu.org> <875zvluaby.fsf@gmx.de> <83r2e9alte.fsf@gnu.org> Date: Sat, 22 Dec 2018 13:35:47 +0100 In-Reply-To: <83r2e9alte.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 22 Dec 2018 12:38:05 +0200") Message-ID: <87zhsxspr0.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:CadlY/1gl9MmihE7h53MXB+6IZGpXF0ccqbk4mzMvP3N92zA+As 9ErCUjzIMsksUBJgzY8z8NTM3p0wyW6BDb/gNmss0a6fWxRScAZc2dqzWG/iB9v6StUBqn1 1F7w3KzXceiX4TLMD1mKF4z74IlfElxTZKEmtlMB9iJs87tp4W2OlRF5BO/cy2H9cwl8zob 1KnoU5Fnc3uXuuQ3p0M2g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Uvrh0KDF6Lg=:iATEPYX3WKASRtZGKXsZcU ElgNQuLbhP+/wFLn68p+1mlp/9rjiFDWqePQTL0lxZMSI4diaLIeWLiXMNii7EBv81W7TrxZc qzRrxwPnF6hVv2k1nAVL4fTJo5lCNev1E2aIqpBuGDJxi8HhNqiveJW0ZbGe4DSo2E4wkSqvB uIw7tyiZwsSCgzEoOdxYXi2W7Sp6ZYKYFi/5ItN4yyRX3l9ZCRHBjCLV8sebURtt0HslYTMrP yD9Bw0LHDZ4g6c9G7sqWonApsrC1vX9/pFWwNpoIeY4VhW2Mwr1k+kZPBAG5AHhl6/iXOjUzA S8A5/VYr3F4rmAr4lN2BUVwGUmJ1Kyh4x73sxeAJ5pPti8Fk5+tDGnFhbdKWBq2U/Q63SXRl3 t4xDnRALQYmCA/vD+z1LSifcSd1PqCAO0HJxY4OvoN71le45HA5DaL4gg/th0UHwCegGyjS6L on31ax8EfgZKr2BSHTnDUmtzyIU6XT9spADzLCi9WCfr/7nt2otGLCd+iuQdLZSrsHRTE7dup zIlkrXHQCUztrFx1OaqrgxuvaVI5u7/e+z98cSqfKsQQf2TDAm94+85w7frYUOknkRnT59lrc OENrsTbBWFFaveVs4Ecs6Fbp+8Tgs99nBBFyR6djVNFOQSlDptmnVxpLi+H04azy3hJDlhntT od1azNuaHwTTtHGJnTBtmueUU+qCLP/t4gBhQMZhZDMsQG4UFMaryhDXSMawf0ABxXhaH8e1W IeweWZXHY8xIWSG4WSzYzGV6/0KLYIEikAYdKuZt5lUhgCAsg7xkE0lExzDNqAm3MvyHpXb7j KJ2NiDR73OKeID0ap8ZHxS+SpBeyUbA8ym1bNqxHgfIoxhXEkjCnRujzL3kq4s0bjyKuZYDPP tomX4OCFYG5w83o9F9un3TOBSB2SWYIFsaujOCVFZzgfqcYhR8Wb7fcJh19NsYUrey8ocdhOV NnMfpF/vK0w== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: >> Isn't this bug#24787? > > Yes, definitely looks like it. But I don't think the discussion of > that bug ended with any conclusions wrt how to fix it, did it? No. It is about MS Windows, and it is a minor bug. That's why I didn't chime in. Maybe it's now time to have a look on it. (I wish we would have somebody who cares about eshell, regularly) > Thanks. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 22 09:36:33 2018 Received: (at 33791) by debbugs.gnu.org; 22 Dec 2018 14:36:34 +0000 Received: from localhost ([127.0.0.1]:59252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaiOG-0006op-9a for submit@debbugs.gnu.org; Sat, 22 Dec 2018 09:36:32 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaiOE-0006oa-Hu for 33791@debbugs.gnu.org; Sat, 22 Dec 2018 09:36:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaiO5-0000cl-5C for 33791@debbugs.gnu.org; Sat, 22 Dec 2018 09:36:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaiO3-0000a6-Md; Sat, 22 Dec 2018 09:36:21 -0500 Received: from [176.228.60.248] (port=3698 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gaiO3-0004FK-A9; Sat, 22 Dec 2018 09:36:19 -0500 Date: Sat, 22 Dec 2018 16:36:04 +0200 Message-Id: <83k1k1aasr.fsf@gnu.org> From: Eli Zaretskii To: Michael Albinus In-reply-to: <87zhsxspr0.fsf@gmx.de> (message from Michael Albinus on Sat, 22 Dec 2018 13:35:47 +0100) Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory References: <87pntyanho.fsf@gmx.com> <83zhsxap9i.fsf@gnu.org> <875zvluaby.fsf@gmx.de> <83r2e9alte.fsf@gnu.org> <87zhsxspr0.fsf@gmx.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33791 Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Michael Albinus > Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org > Date: Sat, 22 Dec 2018 13:35:47 +0100 > > Eli Zaretskii writes: > > >> Isn't this bug#24787? > > > > Yes, definitely looks like it. But I don't think the discussion of > > that bug ended with any conclusions wrt how to fix it, did it? > > No. It is about MS Windows, and it is a minor bug. That's why I didn't > chime in. Maybe it's now time to have a look on it. I hope so. I'm also quite surprised that the problem is specific to Windows. If Eshell does handle remote directories in eshell/cd, then the fact it doesn't work on Windows might be some silly syntax issue, like some code somewhere expects a directory to begin with a slash or something. > (I wish we would have somebody who cares about eshell, regularly) Seconded. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 22 10:45:42 2018 Received: (at 33791) by debbugs.gnu.org; 22 Dec 2018 15:45:42 +0000 Received: from localhost ([127.0.0.1]:60150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gajTC-0000Jf-FR for submit@debbugs.gnu.org; Sat, 22 Dec 2018 10:45:42 -0500 Received: from mout.gmx.net ([212.227.17.22]:53337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gajTA-0000JR-P4 for 33791@debbugs.gnu.org; Sat, 22 Dec 2018 10:45:41 -0500 Received: from K53SC-WIN ([90.221.3.153]) by mail.gmx.com (mrgmx102 [212.227.17.174]) with ESMTPSA (Nemesis) id 0M9vnQ-1ghMFJ3D4K-00B5j7; Sat, 22 Dec 2018 16:45:34 +0100 From: Jordan Wilson To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory References: <87pntyanho.fsf@gmx.com> <83zhsxap9i.fsf@gnu.org> Date: Sat, 22 Dec 2018 15:45:31 +0000 Message-ID: <87muoxy38k.fsf@gmx.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ge5x0QFvew/KZyBg2umbl8J1ynYyNFbvJSKDjzuglr6yYff8kRo Q2cHrWF8V1onl4rk5G73ipx822w05dV8N0Bp8VWeVnzM+4rEEpIRvJT827J+XMmd8tijY61 5XeTSI7hwXfW4dqT+8MfeHZC0FoduMNFi2+a3gTQm+MGgh5QM2blNf990POJAw+ZJ+ZXJBI +I/7voZih5g1kfLsctr1Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:F+5YdzsvLAs=:M8Nrm5BGnTsRzqcu85IzdG lTe0saoSG2JEk2mHL/xs5z541kRVaTOb2AnkNbbsobbjTVQqJuqoDkJ37D4KD2FzCmXZWfz6O OF3QeHw8CIyqU+8mx8gJi9DI8pjC7WrB3iofYkFubGeT3c4H4TNYPv888Ri5wjlrmzR9onXXq jGuvAGqTVvivUcwDiDpjujU9z5g7yhZslUirwMsKBkOsu/2cBxRWOWVI/9R74TfVoYev+Xgbu GyuDYBLu25H67pMYGVonoacTlpzqQO+vIJGYf9djo8R1JADTYKWqLkpAh8siVpQ3m6gb0fMcB nu4JKbpgKBAJaIrtA2KOihShZSAKyzKY5/2K5iUmcPWBkDnGuZIbW8qBBx6Vjn1hB20Jt9Kv8 I6svsoxDuz6hzfFC4N1e4OsYdWVT29TEvpcGZOO605rq5SYbxFvsWNzT6C7E0SVFWEi1H9lQ/ 7THyRHpBPzmUWe6/EsG2cIFWePEXQHuraVrGvrfNmbYsnVDE8Et10sqnrkC0ry4KDz3NW3ab2 kOPDUo/NpqFC4OdDB3n22C/Xivwir957LVCqhYSc4r527PBJzsycEVOOp5WXIOcuo2tg3g0gA w0RKqZ1JfyPC2f9iUJ6sQFlxNbSbuGoKoSVO4cDv1We6Hrj2HI8NXtabzheSHKEY0RuD0yEXs xu3jNg+F9Fi2tpxMGbyFcCUgZyLDi50DfAJ9qrB3l4udqWdz55IK0R68A0bBcw2mLrTvd64Vo FbirjHGo41/mcgnkV7CReLy37gzL+6651j2Y8U5WigkTbcMENm4BENRKu83i6+9/CxdoAaQzX q/TC/NxJ7AnX9EWhg7wnwr0c86r3WyYpUs3h7cGkWni3LwdXw38fXBM+5TlYblwLlSobxbHeQ DaVpvF0tCXvNswsoNGHhLp7lQtRVDKoawuRBzZq8cx1PKJjFEFlcGxQ8KVWeL1+YnlSt9Fh+5 PnhkMKWrwQA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2018-12-22 (Sat) at 11:23 (+0200), Eli Zaretskii wrote: >> When I'm connected to my GNU/Linux machine (using TRAMP and plink) with >> eshell, I can't run executables in the local directory. Doing >> "./test.sh" returns "env: =E2=80=98c:/home/jordan/test.sh=E2=80=99: No s= uch file or >> directory". > > I cannot reproduce this, but I'm not on Windows 10. I'm getting it on Windows 7, too. Both with my configuration and with the "-Q" argument. >> Here's an example: >>=20 >> c:/Users/Jordan $ /plink:jordan@domain.com:/home/jordan/test >> /plink:jordan@domain.com:/home/jordan/test $ ls >> test2 test.sh >> /plink:jordan@domain.com:/home/jordan/test $ ./test.sh >> env: =E2=80=98c:/home/jordan/test.sh=E2=80=99: No such file or di= rectory > > What is in test.sh? Did you make that script executable? Yes, it's an executable. It should actually read "c:/home/jordan/test/test.sh", but I somehow omitted the "test" directory when I reproduced it in my message. I've replicated both issues connecting to another GNU/Linux machine. --=20 Jordan Wilson Sent from Gnus v5.13, GNU Emacs 26.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 22 10:54:55 2018 Received: (at 33791) by debbugs.gnu.org; 22 Dec 2018 15:54:55 +0000 Received: from localhost ([127.0.0.1]:60158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gajc6-0000YH-OG for submit@debbugs.gnu.org; Sat, 22 Dec 2018 10:54:54 -0500 Received: from mout.gmx.net ([212.227.15.18]:59863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gajc4-0000Y2-G8 for 33791@debbugs.gnu.org; Sat, 22 Dec 2018 10:54:52 -0500 Received: from K53SC-WIN ([90.221.3.153]) by mail.gmx.com (mrgmx002 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MMT1y-1gSS9T2bde-008Hrg; Sat, 22 Dec 2018 16:54:45 +0100 From: Jordan Wilson To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory References: <87pntyanho.fsf@gmx.com> <83zhsxap9i.fsf@gnu.org> <875zvluaby.fsf@gmx.de> <83r2e9alte.fsf@gnu.org> Date: Sat, 22 Dec 2018 15:54:44 +0000 In-Reply-To: <83r2e9alte.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 22 Dec 2018 12:38:05 +0200") Message-ID: <87ftupy2t7.fsf@gmx.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:G8GcPbMyDOwT66Wm9GBpHH6rl3pRZoFQP00q8JITMuDti8HCC1t IdAzurTJlJcf2k/m4XJwbHvRGDQeffRjYAMfOJKFY0dOySteGR6H7bmHMtB0my/7PDL0BTH LOdr9tfgyyOwoYmaZLUhpk28zYzUGxRCq46+lawrnVxNUw2WVm77vCCflZ2prLEPqkcC4te WhN4ysn78+aCQWphl1jMQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:9uQRUm1LPSs=:WYxOyl5gTG1rTTGmPlhJNM RyEwXXxQAAV+14YVVuj3B+Naf6G4jEEczUqSTqeE7cYBdNzS7lTFfOzt6FzuZMQda5QKpOO++ E0b+g1EPlWRNpmo0Aso23dYo8pSIdgY8rQnN6VtoKU68B43FFPzUGSWx039/6yUWDoD9jAdis rsrXe7sKttLJy9gtjV5BpZ/9xNPDWWReIKM4jcDyv1WAvQ7lCv+5iEl64h9WJ9QHrO4iBbloL rE1Cr9zpAqoAFVTFEuVqlIRQch9FP/HqOm/FfV8IBzXx0FbqvNnMkmtUJ8rbYClQ29fTXauP3 /wqOAgjlFN3m9yJiEdakfdj9Ef4qH2XTPSuShZeAO5JOnu/SguvjjXHV3L9sRA44T3dWIWrv8 mfiiUkevrfsoOwkjzw5az3k4qjyctBkRNEv4LRfm+pWiZYHVlRJA2JnN//Jm7Invf8l4yH0Xw ufKRl57kUARL2N7F8vnSpxCqinz4q+9GBBwYlKbMYndvBUBk/5sjNdoYIRozyBpYcAsT6gzUe L71g8sHtpXkNcW8g2AyCibxZfUbFoJwiBecDB0/UAQIf7ejolcKEibM1aB2J94YC9yfx3s2UI OtRBw2W3xbdRrw0LQcdvpt/YL9ucNuGZjc/t1/LdnB8AX7MZIOIacKi2m49439OtziHwqfxJL KJu6GZXlNJptJJVTfvsHQKmjb29g5KjKtNoqlAejokJkOtZ9A+1pLv3PCc4XepIX3bht7PYvf hqPUiNn5s0/B8HWSfiMZDTbTrKtnuj/tRIBLiv84x6gbZmIgWMTRy8DJgmXYh9t/DTalWuhyB V5auvcIhs82sIz8FZ4uT61OVyiN7RfiakitH7a8qTL8ScDGj82hjWzN0cAqScVvkEVuH/cu0w VdA3HL/3ZqVZB1dte3b9uKVopZFGyGOcYpjaO779fD9JsZ4IbaOZQK/PIuFHzozFrPVOzAov/ Eyyw4g+Wdbg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: 33791@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2018-12-22 (Sat) at 12:38 (+0200), Eli Zaretskii wrote: >> From: Michael Albinus >> Cc: Jordan Wilson , 33791@debbugs.gnu.org >> Date: Sat, 22 Dec 2018 11:25:53 +0100 >> >> Isn't this bug#24787? > > Yes, definitely looks like it. But I don't think the discussion of > that bug ended with any conclusions wrt how to fix it, did it? The CDPATH problem seems to be the same bug. Navigating (when in /plink:jordan@domain.com:/home/jordan/test/ ) by cd test2 fails, but cd /plink:jordan@domain.com:/home/jordan/test/test2 works as expected, as the OP of that bug reported. -- Jordan Wilson Sent from Gnus v5.13, GNU Emacs 26.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 22 13:50:32 2018 Received: (at control) by debbugs.gnu.org; 22 Dec 2018 18:50:32 +0000 Received: from localhost ([127.0.0.1]:60217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gamM4-0006vy-1e for submit@debbugs.gnu.org; Sat, 22 Dec 2018 13:50:32 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gamM1-0006vk-Lq for control@debbugs.gnu.org; Sat, 22 Dec 2018 13:50:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gamLw-0000TB-15 for control@debbugs.gnu.org; Sat, 22 Dec 2018 13:50:24 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gamLv-0000T7-UU for control@debbugs.gnu.org; Sat, 22 Dec 2018 13:50:23 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gamLv-0002TV-SF for control@debbugs.gnu.org; Sat, 22 Dec 2018 13:50:23 -0500 Subject: control message for bug 33791 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sat, 22 Dec 2018 13:50:23 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) forcemerge 24787 33791 From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 23 07:40:27 2018 Received: (at 33791) by debbugs.gnu.org; 23 Dec 2018 12:40:27 +0000 Received: from localhost ([127.0.0.1]:60587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gb33T-0007Pa-5A for submit@debbugs.gnu.org; Sun, 23 Dec 2018 07:40:27 -0500 Received: from mout.gmx.net ([212.227.15.18]:54879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gb33Q-0007PI-CX for 33791@debbugs.gnu.org; Sun, 23 Dec 2018 07:40:25 -0500 Received: from A715-WIN ([90.221.3.153]) by mail.gmx.com (mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id 0M6BKc-1hKeQF14mo-00y6Hw; Sun, 23 Dec 2018 13:40:17 +0100 From: Jordan Wilson To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory References: <87pntyanho.fsf@gmx.com> <83zhsxap9i.fsf@gnu.org> <875zvluaby.fsf@gmx.de> <83r2e9alte.fsf@gnu.org> Date: Sun, 23 Dec 2018 12:40:14 +0000 In-Reply-To: <83r2e9alte.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 22 Dec 2018 12:38:05 +0200") Message-ID: <87woo0s9g1.fsf@gmx.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:XueD5lwiqYwC5/K2titT6oN12gzI2YVrC4UGTqsv9nKuFoTzcIQ VFeLpnN+efviRr8nj3Oze2d9Ws2Pyr09RUab4F2EqHy9hEoNX8qQ94GOv47YLdhAoF/Wj2L LWsbohyzoL+/v+EVlM4UmQbCnVNE3IHFSlHMPhBea+mNkY1NrfL3I30S3WLqJyWlS5LxiaU 468+5HruT3kvXWgEFz/Uw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:caOdb29PI6w=:YIZG3iKMHZKnHPOJo7ofVU nxW8Sm8dwzOP6vuJ2tRyBZSZXNHmv/3txbJaDrYYJZLrblo979eIS73FPEK2pCggz/9Lt1NzB 0HTzj19Fm3JpOaMgQZu8/6w4dcK85XEqCvRExY9TcvdhQj8RGDNYgN9FtshNP4YIWaA9wJDUQ oSteQfVxXhkz2CkXVYTMp7KJ395/s93GYGLiSFTZ1WN2XQmdeyIBktJFKWB7dZhlXR98FDLbP PPkun/Xg9QtVzx9ADZiFNaFok4/rpLrCdN3GcxfGol35PPm7eRmqx84gvM0PdTmhRcNO3Tmpc ugLXFP2+3B2yEmOc7tD39NsvUgxVOS2u6nJSz0UDhh3DqHNQy3rqpHnL/ezFuWMh8gHgMfutA ydemER7dM0ygdvShPMePNnmGJv5RuBEo1sxkQw5IlbwdE++Bpysr+4vnmBe0F97Yyj7DWYWrL PSQFHz/loCx0irfMeE9TkS7GkCyYknL7dKJELF+d1br39BFN5WwmWv37meCmdSlv6SAb6R7uI DbNOkdxPR5S84L2XtoVtJA8p/4/F4MvmX+Gf2/7XfA8hi9FXB8XwIKDtIapcGCefU44X2rNoc C665N4skZp0E9Ybv8Qg7tAYyrJvWU57R8ZwyiSK1kVCGDsN7ZSOvUBx0itz0HamtyJ7VfSzNA Gc9IC8TCbq3uP7XzLQIC6zzbQmuOmn4uO7/oujJKDC7RIWOcn1cJ//gI8JDanscocfWmqWfCq WPZcyXSArhxYYKygQTZphert6TwRZ+oNdfyuY0WS0T6uR+cLC2lIgMUJFMnpPacVhJrbO3jEp HKoX/wnjQMABmV63oggV8oK8gpHqN5ee4elDYgMaVLEc0IEfOdMyPcx1bpVFphpSAM/ttz4KW sNsE9tVvG3fQm4RUeRNz5f2dHEcK8bc8guJ51T6ADGYIKOZ3tZ2lv8hXq57+S1waNfW+KutDp bWag8/ClNjg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: 33791@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hmm...seems the bug I'm experiencing is more low-lying than eshell. I've followed it down to C-level. eshell/cd -> cd -> locate-file -> locate-file-internal. In my case both problems arise from "c:" being prepended somewhere. Evaluating: (locate-file-internal ".." '("./") nil (lambda (f) (message f))) while in "/plink:jordan@domain.com:/home/jordan/test" returns "c:/plink:jordan@domain.com:/home/jordan". Whilst (locate-file-internal ".." '("/plink:jordan@domain.com:/home/jordan/test") nil (lambda (f) (message f))) correctly returns "/plink:jordan@domain.com:/home/jordan". It seems the problem is something to do with converting from a relative to absolute path. Eval'ing (expand-file-name "..") correctly returns "/plink:jordan@domain.com:/home/jordan", though. Strange. -- Jordan Wilson Sent from Gnus v5.13, GNU Emacs 26.1 From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 23 10:59:01 2018 Received: (at 33791) by debbugs.gnu.org; 23 Dec 2018 15:59:01 +0000 Received: from localhost ([127.0.0.1]:33918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gb69d-0004Bf-51 for submit@debbugs.gnu.org; Sun, 23 Dec 2018 10:59:01 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gb69b-0004BS-2m for 33791@debbugs.gnu.org; Sun, 23 Dec 2018 10:58:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gb69U-00075Z-RA for 33791@debbugs.gnu.org; Sun, 23 Dec 2018 10:58:53 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gb69Q-00072D-2L; Sun, 23 Dec 2018 10:58:48 -0500 Received: from [176.228.60.248] (port=2294 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gb69P-0000LP-LB; Sun, 23 Dec 2018 10:58:48 -0500 Date: Sun, 23 Dec 2018 17:58:36 +0200 Message-Id: <83woo08cb7.fsf@gnu.org> From: Eli Zaretskii To: Jordan Wilson In-reply-to: <87woo0s9g1.fsf@gmx.com> (message from Jordan Wilson on Sun, 23 Dec 2018 12:40:14 +0000) Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory References: <87pntyanho.fsf@gmx.com> <83zhsxap9i.fsf@gnu.org> <875zvluaby.fsf@gmx.de> <83r2e9alte.fsf@gnu.org> <87woo0s9g1.fsf@gmx.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33791 Cc: 33791@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Jordan Wilson > Cc: 33791@debbugs.gnu.org, michael.albinus@gmx.de > Date: Sun, 23 Dec 2018 12:40:14 +0000 > > Hmm...seems the bug I'm experiencing is more low-lying than eshell. I've > followed it down to C-level. eshell/cd -> cd -> locate-file -> > locate-file-internal. In my case both problems arise from "c:" > being prepended somewhere. > > Evaluating: > > (locate-file-internal ".." '("./") nil (lambda (f) (message f))) > > while in "/plink:jordan@domain.com:/home/jordan/test" returns > "c:/plink:jordan@domain.com:/home/jordan". Whilst > > (locate-file-internal ".." > '("/plink:jordan@domain.com:/home/jordan/test") > nil (lambda (f) (message f))) > > correctly returns "/plink:jordan@domain.com:/home/jordan". > > It seems the problem is something to do with converting from a > relative to absolute path. Eval'ing (expand-file-name "..") correctly > returns "/plink:jordan@domain.com:/home/jordan", though. Strange. Right you are, thanks. The problem is that locate-file doesn't support remote file names. Does the patch below produce good results? Michael, do you agree with this solution? Do you think it's safe enough to put it on the release branch (it's a regression from a few years ago)? diff --git a/lisp/files.el b/lisp/files.el index eb09a7c..cfe67b4 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -801,9 +801,15 @@ cd (setq cd-path (or (parse-colon-path (getenv "CDPATH")) (list "./")))) (cd-absolute - (or (locate-file dir cd-path nil - (lambda (f) (and (file-directory-p f) 'dir-ok))) - (error "No such directory found via CDPATH environment variable")))) + (or + ;; locate-file doesn't support remote file names, so detect them + ;; and support them here by hand. + (and (file-name-absolute-p (expand-file-name dir)) + (file-accessible-directory-p (expand-file-name dir)) + (expand-file-name dir)) + (locate-file dir cd-path nil + (lambda (f) (and (file-directory-p f) 'dir-ok))) + (error "No such directory found via CDPATH environment variable")))) (defun directory-files-recursively (dir regexp &optional include-directories) "Return list of all files under DIR that have file names matching REGEXP. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 23 11:43:03 2018 Received: (at 33791) by debbugs.gnu.org; 23 Dec 2018 16:43:03 +0000 Received: from localhost ([127.0.0.1]:33939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gb6qE-0005GQ-SS for submit@debbugs.gnu.org; Sun, 23 Dec 2018 11:43:03 -0500 Received: from mout.gmx.net ([212.227.17.20]:48889) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gb6qD-0005Fx-3i for 33791@debbugs.gnu.org; Sun, 23 Dec 2018 11:43:01 -0500 Received: from detlef.gmx.de ([212.86.57.189]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MeMOx-1gkECX1NfT-00Q9vB; Sun, 23 Dec 2018 17:42:54 +0100 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> Date: Sun, 23 Dec 2018 17:42:52 +0100 In-Reply-To: <83woo08cb7.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 23 Dec 2018 17:58:36 +0200") Message-ID: <87d0ps5h4j.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:7FB0eM4r8odyd/nD/9TpNviq+zND+kKGb1DOQS5Qwxdef8+O8uU MmQFdpH3lPInduK3c+eQiY4cBRqybS1n1MmZofFW2c/Hm2h8AkI0Cfr5FXhsyilgS1JG4cX slwOoo2k8/PlD9bOQ5DYh8ysUJx6qayg++3azitJ26olzIigZJSPDAEWiC3Qst3cjXx3sRE 4tgHx3CVpGmeNzQjZOIcA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:4vN0guM8oJo=:W1bO1BSXMD+4soR0x3VrZd VUhtheYkieQ+J3/gdlbAXf27PQAfa2Ui0ur5tK/cAcqfq70jcke/UCo67twkP85Ez0gw9iavg O+HAOSnesS8qik5LQZTNpsegSjiGNrNV25/XiCY6AlDXpLlOy3y+mXVPwdreHxg8j/ZSaiDQF xfY3FJjKrnIwEbt+bd2A9rVUocaR60iAmubE3uuOVxgNzX7Bvcewb0ZN5/LL7ZeQKgzQR+rll O2HLIxooQn1qrhuHI5LYFJ8Z5GleJ5oTROWjw9sFz78HUBVU5vLjCOOERcFilQVMDZWg54auh afUkFu3mbu1jYFgLMv8aDBSR4RafKoZ9zfaQN6dGoNJUAabc/717UpjZzTs+tw5R4OOT8SS8R IQKawpxhiHijiA+VZQcOW1yz0YS4wmFQIBs/Gwmp8TT1F3Qig2l2JoSKoCTWHduHg1EwDb+DW EqCLOFD/lDwMK+McuYLzqdvXxY1UH81v+QMSD5skyWpIRhbR4/ouVcMaDRMTi0uBOExTxoIF2 wVut/dVDS1pZXvJlVYlwcuwTxAsfAVAyhLSvSYyzp1emuz8n8h5+HFJd9vmkH3v/VtYNfqhfe C1wKMQv3bh0RyOYRteuZYOnmHEfpptz4wsxrH93JR0w5+6rNj3TSmKFsjv/l/VWh3CUBjsecd KHAbCyb6rKPcXqbl/PT+ADpH7FoaIzTJV9ZO6m4RVYewuc01QQbf/geyeFuYVHL6skZxDLcAF 2pygTg/k5GYMEgyb4Wi4P4AuifGA+AaZrahTguqeLv35V8GEL9s4ssHhEQs6cfKQEI9x3GOfA V8/rOBmTUNiKmaCoaBH7R35S7tU1MXUhplZAqGTsNC2RSjiEE8oZLhHWK2sc5YEMC2REJR9lW n55Mfkcs1F6JClc1JiZCqeU9vdkGBP1SIb1pMi8df+qxCGoWPSN5F9mb8X7C15pUGEqv52WhV YAwR4HkiWig== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: Jordan Wilson , 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: Hi Eli, > Right you are, thanks. The problem is that locate-file doesn't > support remote file names. Does the patch below produce good results? > > Michael, do you agree with this solution? Do you think it's safe > enough to put it on the release branch (it's a regression from a few > years ago)? Please give me some days, I hope to work on this over the next days. I know you are busy with Emacs 26.2; if it cannot wait just go on with your fix. Btw, what about supporting locate-file by file name handlers? Just an idea, and it wouldn't work in Emacs 26. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 23 11:51:35 2018 Received: (at 33791) by debbugs.gnu.org; 23 Dec 2018 16:51:36 +0000 Received: from localhost ([127.0.0.1]:33955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gb6yV-0005Tg-Lu for submit@debbugs.gnu.org; Sun, 23 Dec 2018 11:51:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59265) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gb6yS-0005TR-A6 for 33791@debbugs.gnu.org; Sun, 23 Dec 2018 11:51:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gb6yL-0008TA-8w for 33791@debbugs.gnu.org; Sun, 23 Dec 2018 11:51:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gb6yJ-0008Py-Au; Sun, 23 Dec 2018 11:51:25 -0500 Received: from [176.228.60.248] (port=1540 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gb6yI-0005uG-Tf; Sun, 23 Dec 2018 11:51:23 -0500 Date: Sun, 23 Dec 2018 18:51:11 +0200 Message-Id: <83pnts89vk.fsf@gnu.org> From: Eli Zaretskii To: Michael Albinus In-reply-to: <87d0ps5h4j.fsf@gmx.de> (message from Michael Albinus on Sun, 23 Dec 2018 17:42:52 +0100) Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <87d0ps5h4j.fsf@gmx.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33791 Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Michael Albinus > Cc: Jordan Wilson , 33791@debbugs.gnu.org > Date: Sun, 23 Dec 2018 17:42:52 +0100 > > > Michael, do you agree with this solution? Do you think it's safe > > enough to put it on the release branch (it's a regression from a few > > years ago)? > > Please give me some days, I hope to work on this over the next days. I > know you are busy with Emacs 26.2; if it cannot wait just go on with > your fix. It can wait, take your time. > Btw, what about supporting locate-file by file name handlers? Just an > idea, and it wouldn't work in Emacs 26. That would be a good goal for the master branch, I think. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 27 08:33:52 2018 Received: (at 33791) by debbugs.gnu.org; 27 Dec 2018 13:33:52 +0000 Received: from localhost ([127.0.0.1]:38263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcVnL-0008PG-PP for submit@debbugs.gnu.org; Thu, 27 Dec 2018 08:33:52 -0500 Received: from mout.gmx.net ([212.227.15.18]:37321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcVnJ-0008P4-RS for 33791@debbugs.gnu.org; Thu, 27 Dec 2018 08:33:50 -0500 Received: from detlef.gmx.de ([213.220.151.94]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LnOve-1hHbtx09xm-00hcdM; Thu, 27 Dec 2018 14:33:43 +0100 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> Date: Thu, 27 Dec 2018 14:33:40 +0100 In-Reply-To: <83woo08cb7.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 23 Dec 2018 17:58:36 +0200") Message-ID: <874lazqekr.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:14YHgn9LuZzWoeKNfGYTSpK21N14msie1e4nffKszrEocpQ3kb5 IFM1S699iui/yCGffryGOLt2rDbLusg9AdHanYzsIKJREqzBkvKHVO6S3pBTf7YzNV02JWC 0bphmM+gPMqmeXrnjys4XJP3e2Km8wG1xcnjFrnri/vRAuO0HsidSgSuPGR6DCv5R58Ky82 bopjBGQr7011ab7eg0Upw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ANYx+g2dhLM=:63JOYbk/+kaDKU2+VyxfuE OQhgjaTJgusp75wPJaOVpVgrsB0gDse4iaZPC4FUyp31bbJZ5oWk4Jn/VP0bs8BIHnjKc9PrM xv/kLhyQ3OkUjKg22RUylp+iKT+8u/b4OIaDtF5Xre0FERpNxbvIj44fWLG0eHcC+DiwJR1uZ OQ2OUDP3R8xLEuqObIkFI0W9Qms7sxsDV4mwV5TFrNPYoxoKZnKbz5V8L2HsNLREzs2+vuc14 5BQuTW7l3OjPi3bfAD8cA3ekPLXmtrWdDoc/QnVovOf/SGIq44qkq3Fjar0FBYA3fqcuEtupQ HFdowDQr49Iaj0eR0RZQ0ZkgfkmS838Bg8NNBEttosAUX13rLw3Xs00rAMYwe1Gzmwn6Uvjws n2hI3h9t8pPSko2yz/d1HhuCPZtoQ/cf7FLE3Grt5HrQuBJZhyiW1BtkEFubbx7Dh1huUMM0C bVgGObA4O831ClBsAe8isO0T39NPizUHQw7xIS6BFw2EL3nJaFfbNyiptiQfvrclszrz1rRMP t8rXzOjfedO5vb5cM8SCSjLpDc7WN3OFICbZLggVjA7WLl/VGzpNlALKw0ZHep+LHr5GRLn0/ 7H+EYaUExfCMk/dAHo3YPE84T0FxfIWZm24YMXwlg6aEHZemlLjQTUvv9B0GmTjixUVH5AsxN SFk0cHXqkZRMVGwRWFk5dwrHRgKxv2v5tVMPETOjgwx9JIhoRQEUlG2O+W5PXrjQZp82FMgKz /RAbfcBME81S12tdv5mJB28iw2xmdBDw7m5w1RcCAfoaXKmF3wMQBAOi72JLT0/hX3L/HgHKp iH+DdqKuHXMsACchWLahxSFXF+zANuB7rlMRldY3i245f64HtZ20LGzMvdf+fklqSw/FfZ4BW P9q0+ojjIVB7ZHjuWLXfvR3aBWv2r4vfBwl3m7bY7F1YMza1RHTCHn+KZcxxWBKV5gQV9qgP5 PqJaSuuUY8g== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: Jordan Wilson , 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: Hi Eli, >> Evaluating: >> >> (locate-file-internal ".." '("./") nil (lambda (f) (message f))) >> >> while in "/plink:jordan@domain.com:/home/jordan/test" returns >> "c:/plink:jordan@domain.com:/home/jordan". Whilst >> >> (locate-file-internal ".." >> '("/plink:jordan@domain.com:/home/jordan/test") >> nil (lambda (f) (message f))) >> >> correctly returns "/plink:jordan@domain.com:/home/jordan". >> >> It seems the problem is something to do with converting from a >> relative to absolute path. Eval'ing (expand-file-name "..") correctly >> returns "/plink:jordan@domain.com:/home/jordan", though. Strange. > > Right you are, thanks. The problem is that locate-file doesn't > support remote file names. Does the patch below produce good results? > > Michael, do you agree with this solution? Do you think it's safe > enough to put it on the release branch (it's a regression from a few > years ago)? I've tried to debug it, but no chance to do it on Windows. Debugging C sources is a no-go for me there. > diff --git a/lisp/files.el b/lisp/files.el > index eb09a7c..cfe67b4 100644 > --- a/lisp/files.el > +++ b/lisp/files.el > @@ -801,9 +801,15 @@ cd > (setq cd-path (or (parse-colon-path (getenv "CDPATH")) > (list "./")))) > (cd-absolute > - (or (locate-file dir cd-path nil > - (lambda (f) (and (file-directory-p f) 'dir-ok))) > - (error "No such directory found via CDPATH environment variable")))) > + (or > + ;; locate-file doesn't support remote file names, so detect them > + ;; and support them here by hand. > + (and (file-name-absolute-p (expand-file-name dir)) > + (file-accessible-directory-p (expand-file-name dir)) > + (expand-file-name dir)) > + (locate-file dir cd-path nil > + (lambda (f) (and (file-directory-p f) 'dir-ok))) > + (error "No such directory found via CDPATH environment variable")))) > > (defun directory-files-recursively (dir regexp &optional include-directories) > "Return list of all files under DIR that have file names matching REGEXP. Works for me, also on Windows, but I have modified it slightly in order to make it more explicit. I have applied > + (or > + ;; locate-file doesn't support remote file names, so detect them > + ;; and support them here by hand. > + (and (file-remote-p (expand-file-name dir)) ... It is also OK for me to push it to the emacs-26 branch. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 28 03:16:15 2018 Received: (at 33791) by debbugs.gnu.org; 28 Dec 2018 08:16:15 +0000 Received: from localhost ([127.0.0.1]:39694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcnJW-0006XH-W5 for submit@debbugs.gnu.org; Fri, 28 Dec 2018 03:16:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcnJV-0006X2-7S for 33791@debbugs.gnu.org; Fri, 28 Dec 2018 03:16:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcnIV-00051i-Q5 for 33791@debbugs.gnu.org; Fri, 28 Dec 2018 03:16:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcnIV-00051R-KB; Fri, 28 Dec 2018 03:15:11 -0500 Received: from [176.228.60.248] (port=4099 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gcnIU-0000Nv-Rv; Fri, 28 Dec 2018 03:15:11 -0500 Date: Fri, 28 Dec 2018 10:15:12 +0200 Message-Id: <8336qi6p9r.fsf@gnu.org> From: Eli Zaretskii To: Michael Albinus In-reply-to: <874lazqekr.fsf@gmx.de> (message from Michael Albinus on Thu, 27 Dec 2018 14:33:40 +0100) Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33791 Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Michael Albinus > Cc: Jordan Wilson , 33791@debbugs.gnu.org > Date: Thu, 27 Dec 2018 14:33:40 +0100 > > Works for me, also on Windows, but I have modified it slightly in order > to make it more explicit. I have applied > > > + (or > > + ;; locate-file doesn't support remote file names, so detect them > > + ;; and support them here by hand. > > + (and (file-remote-p (expand-file-name dir)) > ... > > It is also OK for me to push it to the emacs-26 branch. Thanks. Jordan, can you test this, please? If this works for you, we will install this on the emacs-26 branch as well. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 28 12:23:45 2018 Received: (at 33791) by debbugs.gnu.org; 28 Dec 2018 17:23:46 +0000 Received: from localhost ([127.0.0.1]:40637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcvrN-0005Z8-MC for submit@debbugs.gnu.org; Fri, 28 Dec 2018 12:23:45 -0500 Received: from mout.gmx.net ([212.227.15.19]:59453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcvrM-0005Yw-Cv for 33791@debbugs.gnu.org; Fri, 28 Dec 2018 12:23:45 -0500 Received: from A715-WIN ([90.221.3.153]) by mail.gmx.com (mrgmx002 [212.227.17.184]) with ESMTPSA (Nemesis) id 0LuxG5-1hLJFY2uP3-0106Qx; Fri, 28 Dec 2018 18:23:37 +0100 From: Jordan Wilson To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> Date: Fri, 28 Dec 2018 17:23:35 +0000 Message-ID: <87sgyhtvjc.fsf@gmx.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:uQyaMjX78Sy8vJexgL9Y5qtz1L2ghgdtY9Nb25gPSBRIheKnkNW zIAXtGwo5CI44aADYmlObDj2Ip5QVUTrMFhVHe5mm133UbNDg+XskzPgInV7NsM7jLenS+5 qi8aQN/nyZ3ryde/wVvkdpKFkFauP+0FzRexQ0x08PKrpencgTjGbLt8nD8uRPUxHawIooS l5IafMX8BQ5RBz/JZrjEg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Ts2eGG9JI9M=:mDfBykT0M9wZ1aS4TnXLx4 I792LQZ0x0Bh7fUyEuzIjxNStt4rKeUuoMrbJpgFjv/krW2gWGxPlTNinWDo2wxOXEo7enwyz 0z43ssqjQyMirJXokLB+6O0RwFweWt7DlcqRrbb92utEV5Qa6+CbLwwExA/fOVUrCVc6rHqe5 Kp36eDFik4RQKdvNrtfKtkvVRzrSAaFBijNYpgA7rrXesXF7NHgHCl+Y8FlAco89dXjfvAupz MAjjvurd/jgRqpUEHmCWOJrAiXsOV4VQCG8SY2bgPP/F5JxraCXXjy2oun7pLTJIIWN8IAoOv +kOPASIqi+uWfsTkcn7HpEwH1Kp2Ex+NF3hDI3i8NFMwBXpfI2iNgIWFob15CzF8Iqx7ZyyRX V+k7AXgIJP/k9sLNc4QNf4nadsVMrhIxg0OAvzM2LZuvMM6jbe25ACuVJrPs2rt/KoycRGjZj hec4Ldb0D06XNPWxXcCBKP3YGByMVQegh+8h5jZ3ctZ8G2/xMCFHk4vS1Ymi5WlfYMLpGsrzX CJYkLkcSuwrZ0a+qLi6L4o8ol+dFqopEgBQdDS62tkEi0Bc16ok9m4+X2p55KtTWb2vlygZ2V q7WYLInJM/PNyHpoXkb5STMyTI30CEdtX7VwtkgQJH0t2KdHome9NTpQ3E6A9CjonRIIUIfU3 6xsMGbqsZ3ANuH2XLniSQI6dKjfqvIXLR9OFs0vzRSpA2AoFIx36JR+2tLTX0ncs1bnJhQ+Y4 XmrrN2a1rIkLKIh8edsHuD/9Ux2xo049/oyegU3XvDEwSvTAHzQZqkfKTE7DRcnvRgrkCitPH rTaYwOStYtoldrmcSHj5P+OXVRVTYW8E4zJpS3nVynLVcIF5BTtXRcYHLQqwmuDQiYWWTjyt7 bwqHedV8DnYOkFrkA4t6BpNAUscyO31lal6tBdvcBIYjkJV4bywNk7VQx50lSxCxpn6k6acRr SnGF8kPu6Qg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: 33791@debbugs.gnu.org, Michael Albinus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Eli, sorry, I've not been online because of Christmas. 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 "env: =E2=80=98c:/home/jordan/test/test.sh=E2=80=99: No such file or directory" p= roblem 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? Thanks --=20 Jordan Wilson Sent from Gnus v5.13, GNU Emacs 26.1 From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 28 13:49:19 2018 Received: (at 33791) by debbugs.gnu.org; 28 Dec 2018 18:49:19 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 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 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 Date: Fri, 28 Dec 2018 20:48:44 +0200 Message-Id: <83sgyh5vxv.fsf@gnu.org> From: Eli Zaretskii To: Jordan Wilson In-reply-to: <87sgyhtvjc.fsf@gmx.com> (message from Jordan Wilson on Fri, 28 Dec 2018 17:23:35 +0000) Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33791 Cc: 33791@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > 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"? From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 28 14:26:13 2018 Received: (at 33791) by debbugs.gnu.org; 28 Dec 2018 19:26:13 +0000 Received: from localhost ([127.0.0.1]:40664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcxls-0000B3-N4 for submit@debbugs.gnu.org; Fri, 28 Dec 2018 14:26:12 -0500 Received: from mout.gmx.net ([212.227.17.22]:40461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcxlp-0000Am-Le for 33791@debbugs.gnu.org; Fri, 28 Dec 2018 14:26:10 -0500 Received: from A715-WIN ([90.221.3.153]) by mail.gmx.com (mrgmx101 [212.227.17.174]) with ESMTPSA (Nemesis) id 0M1SLt-1hWILL0UQ5-00tRsG; Fri, 28 Dec 2018 20:26:02 +0100 From: Jordan Wilson To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <83sgyh5vxv.fsf@gnu.org> Date: Fri, 28 Dec 2018 19:25:59 +0000 In-Reply-To: <83sgyh5vxv.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 28 Dec 2018 20:48:44 +0200") Message-ID: <87bm55tpvc.fsf@gmx.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:hKr3bnlrxj1fIQT40sWR9N+fEA+r961vQogqS2Wp1lAbBuBqQRC FeQdhoihGiNJCWtG6W0XyXuzeGHGdVAPobB5fZWweCdxr6QqDZqm6TFmmGnL5XUcfAJBvzp XuKO28Au/+g41sQGeSdi6kQbg7JCttv4hz2TTn8cvJ9Kf0uws1gzWUuogr73QRsMCzZV+PF RRtE1GsLt2UKp06EJyDXA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ExhgXRQJfAs=:mxax1eisbzsC7CfeO+vhab Je1czIFfQzWdmoNjAgGG34htb5i4ObCCY1eomsDZS9CBr/udIzuIf7zvlfOOQ0c8nGOno3X9K 6oz6ZUHdiiJds6WXvVWm+0cQ1cEB7DA5MHtIFOCaUAdM8nZ+IAUhmoNJ3pOnKZsnzXDIqFhRz qX8zUR9k8g0MpAknN2qm7b6KadkbZ//bJU4SQFO1PUA3rzjicio1gi7hh06p7SE+I9vyAQ1ID GvwxhEtdkHm9TmLrN263KsH/fMaij2g35elq8BXsyKS/va4n10RTWyG1ZDXYCxPnRx836EkMP uk3x0fZsz5BAAKeINz+Sr+47s7/x2ChvmR+i5cfudkR/Gg2/vpvlraxn1L2puTuY1UXurIk7C 4GFBDypXXUnm4eaqQmLzXs01SWIfOKAhWjJY1FmGyrj9WCprVD0Cod0z3jm5xQV5xVbedgJEy Oek54hChkdJC523A+pzjTeQAwZyyPK2J/fsZuL9zS+b2jXdvuImHcg+CLMuGROfY0O5ejFPuN Yu85Np33wOdifPButjrB2Sd82B/MEeczfbwSQQWERNd1ahRZhd4HwwA8qv94tKgZFZZoNWTkO nQf6YTphRAsJrz26pDEwNPqAMmuicHHeA74GmRMItOkJ5ZMQUILZ7g6lg4u1/kTzGyI9fh3xJ 59MXlDcl54I8eUvxgM+HWwd0D/0EuZiHeEF8XCKGZjK43tpe0OU5pqqkrTnx9JQm+AY5F5b96 IlFnaq9SDwTCPFkFTFKiiS8v+5wF9z9zLN3WVL6DsaG6D975A2Xa4MMXV37Oc8WeapoHQgtEn RaSO9jrTD4DD5Cf7wJe0Ug2jmsdKBeAqOx7FILdafaOWJbQwSK9OpXDZrvypMupNIqFeB9Dqb 8GH2Bol9jvuBRckwf/lEtAcvl8+andx7WcMVQmV7se7QAV9QkU0N1HtWT3EuU8YlkEZyJSk4A unv/4Ln/q2w== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: 33791@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2018-12-28 (Fri) at 20:48 (+0200), Eli Zaretskii wrote: > The one I porovided or the variation proposed by Michael? Which one > did you try? Both work. > Can you provide a reproducing recipe starting from "emacs -Q"? - Have putty in $PATH (version 0.70 on my machine) - Load Eli's/Michael's patched files.el (error appears regardless) (load "files.el") - M-x eshell - connect to GNU/Linux machine using plink: /plink:jordan@domain.com:/home/jordan/ - run executable in working directory ./test.sh returns "env: =E2=80=98c:/home/jordan/test.sh=E2=80=99: No such file or dir= ectory" --=20 Jordan Wilson Sent from Gnus v5.13, GNU Emacs 26.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 03:18:36 2018 Received: (at 33791) by debbugs.gnu.org; 29 Dec 2018 08:18:36 +0000 Received: from localhost ([127.0.0.1]:40812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gd9pM-00067y-9F for submit@debbugs.gnu.org; Sat, 29 Dec 2018 03:18:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gd9pL-00067k-9f for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 03:18:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gd9pB-0005QP-Uc for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 03:18:29 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gd9pB-0005NB-4m; Sat, 29 Dec 2018 03:18:25 -0500 Received: from [176.228.60.248] (port=3224 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gd9pA-0001kq-OZ; Sat, 29 Dec 2018 03:18:25 -0500 Date: Sat, 29 Dec 2018 10:18:05 +0200 Message-Id: <83h8ew691e.fsf@gnu.org> From: Eli Zaretskii To: Michael Albinus In-reply-to: <874lazqekr.fsf@gmx.de> (message from Michael Albinus on Thu, 27 Dec 2018 14:33:40 +0100) Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33791 Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Michael Albinus > Cc: Jordan Wilson , 33791@debbugs.gnu.org > Date: Thu, 27 Dec 2018 14:33:40 +0100 > > I've tried to debug it, but no chance to do it on Windows. > Debugging C sources is a no-go for me there. Can you tell why? I do that all the time, so maybe I could help. > Works for me, also on Windows, but I have modified it slightly in order > to make it more explicit. I have applied > > > + (or > > + ;; locate-file doesn't support remote file names, so detect them > > + ;; and support them here by hand. > > + (and (file-remote-p (expand-file-name dir)) > ... You mean, testing file-remote-p _in_addition_ to the tests I proposed? Is the file-name-absolute-p test needed if we test with file-remote-p? > It is also OK for me to push it to the emacs-26 branch. Done. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 03:39:05 2018 Received: (at 33791) by debbugs.gnu.org; 29 Dec 2018 08:39:05 +0000 Received: from localhost ([127.0.0.1]:40818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdA9B-0006bt-1z for submit@debbugs.gnu.org; Sat, 29 Dec 2018 03:39:05 -0500 Received: from mout.gmx.net ([212.227.15.18]:41965) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdA99-0006bO-Di for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 03:39:03 -0500 Received: from detlef.gmx.de ([213.220.156.5]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MNIAz-1gjToH29X7-006uhJ; Sat, 29 Dec 2018 09:38:56 +0100 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <83h8ew691e.fsf@gnu.org> Date: Sat, 29 Dec 2018 09:38:55 +0100 In-Reply-To: <83h8ew691e.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Dec 2018 10:18:05 +0200") Message-ID: <8736qgsp5s.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:Au9wtAz196qm8XOWidrh7O2FCF8uP4rqT1DwmKDhIqrCuQVg+jR It1Anr8UAK7XQhjBLwruPL6D3+z9BvNd5LINq8VYSWHteBCzZhebydtUM7MOb7j0em4byF0 R1wBaGuqTUEb/OwnAlPumHpPaBM7ctPxP5F74WvXubvFVmJ+w3XNj+LkQef+E7B59D9r3jz 9CLQkce5buo3yMtYNe6Qg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:GHD04iMJ1Ls=:EtiutHTj4X1XhODl3Icx4l i8k4L5U0xjNwKupza+8UWHvy5IPer9FAQNy23P3PFvZYSF3xQg8636wbGCqbeWUjGFT5f23LI ebyu5nm07A/BwX2sTEm982pLf+HMvzCYPk61kbqTEnEL4olxsbrVK/mQNSK0ru9WuHt+uGQpo 0Cmt+MmrPYTjTNPTCgEFhHvtviJiPmdsYVM+F9X1E3Y4qhBlo5aYAY04Qdr2qSh5YFQ1QgLdL UBxXHrI3yNXKXECCE8IvSwpdQGT0vF+TPt7fR449ZpuRaNXz4MaefAxdmOiBD+1CdTJwA4u9o pKHtmHIFNEHvm/kMGuiau8kt2RNACkdkxsqbVNtqhbqHO11N96KoqA1Ds3jbCSbgioZvVRC7u 6ZczZYzMnT3jewnCM7H3YfnCSLSZzZv0jKCnbZlmWSjELVugyuUtYljsQU2FT9rlyqoaYyXha 3Sz1UKUwBCskbdJ+1z0MyKkW/9AlsaYJHtebX8gCu/tyy2KicR2o+aDmrYgYknaB3TOjaoP4y W2snkzg/9vkhzF3KCOcp35fw2ugxPoYJcf2iy9KYeLTYyxE+uZsTxL4bkci1Kz1QEz8aOqZ/Y 3miG7vVr9EKYBIEgyIDsjyPyaOAgYXmd+JNh6oXnGOv5uNpxwO1naCz+mCT2n6EhFYQCFoTXu txutt3TyoEjvR8YggCqlUUXqeDkvHmNoN7iD4OBoHx1DQEPfocIzDmK5p4pquEwLXafG8+Ukm Ky8g29ddEADQFFeg/0Xd0G4eLbeM5yFr9yWvzVrmp3nNDov+sdPNB31lv2LiiiZn69QRQNnk1 1lYI8KH9LEbWKsJWmIeAvOvXkGQf8YQ3T/y+gHxjjm50qNtmcRLczPn3DHXVMBBvNQ3ZwUEYH x9jHAtBvmB7bcbA33E00yGE3E2AA9uxpcOlkeR0eBEKrELiTvrofsj65AXDj4zwVmbUAa7GEy MoB/t7MOF5Q== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: >> I've tried to debug it, but no chance to do it on Windows. >> Debugging C sources is a no-go for me there. > > Can you tell why? I do that all the time, so maybe I could help. When I can find a WIndows machine, I can install Emacs and debug Lisp sources. Installing a C compiler, building Emacs from sources, and debugging C sources under Windows is out of my scope, on a borrowed or stolen machine I have under my control for a short time. >> Works for me, also on Windows, but I have modified it slightly in order >> to make it more explicit. I have applied >> >> > + (or >> > + ;; locate-file doesn't support remote file names, so detect them >> > + ;; and support them here by hand. >> > + (and (file-remote-p (expand-file-name dir)) >> ... > > You mean, testing file-remote-p _in_addition_ to the tests I proposed? No, instead of file-name-absolute-p. > Is the file-name-absolute-p test needed if we test with file-remote-p? No. >> It is also OK for me to push it to the emacs-26 branch. > > Done. Thanks. Best reghards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 04:11:24 2018 Received: (at 33791) by debbugs.gnu.org; 29 Dec 2018 09:11:24 +0000 Received: from localhost ([127.0.0.1]:40826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdAeR-0007N7-M7 for submit@debbugs.gnu.org; Sat, 29 Dec 2018 04:11:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdAeP-0007Mu-Sn for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 04:11:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gdAeF-00089M-M9 for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 04:11:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gdAeF-00089G-H9; Sat, 29 Dec 2018 04:11:11 -0500 Received: from [176.228.60.248] (port=2489 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gdAeE-0004O4-TJ; Sat, 29 Dec 2018 04:11:11 -0500 Date: Sat, 29 Dec 2018 11:10:52 +0200 Message-Id: <83ftug66lf.fsf@gnu.org> From: Eli Zaretskii To: Jordan Wilson In-reply-to: <87bm55tpvc.fsf@gmx.com> (message from Jordan Wilson on Fri, 28 Dec 2018 19:25:59 +0000) Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <83sgyh5vxv.fsf@gnu.org> <87bm55tpvc.fsf@gmx.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33791 Cc: 33791@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Jordan Wilson > Cc: michael.albinus@gmx.de, 33791@debbugs.gnu.org > Date: Fri, 28 Dec 2018 19:25:59 +0000 > > - Have putty in $PATH (version 0.70 on my machine) > - Load Eli's/Michael's patched files.el (error appears regardless) > (load "files.el") > - M-x eshell > - connect to GNU/Linux machine using plink: > /plink:jordan@domain.com:/home/jordan/ > - run executable in working directory > ./test.sh > returns "env: ‘c:/home/jordan/test.sh’: No such file or directory" Right, I see this as well. Michael, I need your help here. The problem is in this part of eshell-gather-process-output: (cond ((fboundp 'start-file-process) (setq proc (let ((process-connection-type (unless (eshell-needs-pipe-p command) process-connection-type)) (command (file-local-name command))) (apply 'start-file-process (file-name-nondirectory command) nil ;; `start-process' can't deal with relative filenames. (append (list (expand-file-name command)) args)))) The problem is that file-local-name returns a Unix-style absolute file name /foo/bar/baz, and the following expand-file-name call then prepends a drive letter on Windows, because there's no longer any sign of COMMAND being a remote file, and so expand-file-name doesn't invoke the Tramp handler. The simplest fix is to remove the expand-file-name call. I don't understand why it is there, but the claim that start-process cannot deal with relative file names is definitely false. This code was there since June 2000, when eshell-gather-process-output was first written. Do you see any reason why we'd need to call expand-file-name here? Btw, isn't it confusing that start-file-process needs only the "local" part of COMMAND? Why cannot its handler DTRT internally instead? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 04:14:16 2018 Received: (at 33791) by debbugs.gnu.org; 29 Dec 2018 09:14:16 +0000 Received: from localhost ([127.0.0.1]:40830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdAhE-0007RI-90 for submit@debbugs.gnu.org; Sat, 29 Dec 2018 04:14:16 -0500 Received: from mout.gmx.net ([212.227.17.20]:33861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdAhB-0007R4-T2 for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 04:14:14 -0500 Received: from detlef.gmx.de ([213.220.156.5]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MgpmG-1gzDmY36x6-00M2sT; Sat, 29 Dec 2018 10:14:06 +0100 From: Michael Albinus To: Jordan Wilson Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <83sgyh5vxv.fsf@gnu.org> <87bm55tpvc.fsf@gmx.com> Date: Sat, 29 Dec 2018 10:14:05 +0100 In-Reply-To: <87bm55tpvc.fsf@gmx.com> (Jordan Wilson's message of "Fri, 28 Dec 2018 19:25:59 +0000") Message-ID: <87wonsr8yq.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:fnzWYWz/1zTpne985TG0Dd4LQxC8C4xo/KW6F+88Mk7q0bCp0EU qNeiv7xVmeLRFg9PWJdZySCoIYTCRcfSX5B1m4KtM1ti+eitP8flE/9uufqsXZqLaP1ySyd zfaEh+VPUWnhiWy8U8AOr3CztuemR3FlB5nyH4jGRjZazTCngS9Ud9qirbWTmyBfLA5CJUJ m4yDOctWiUhJoDfn6lVyQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:wVPxrkpOjp0=:aF1WLhoCRRuV1p8zhMH67J oOpKcSalMm5/ARUBZreILkXphoanCu5+iXEWWV0EMOe6jIBmegT9tKsjEzSq64DUZjRksYtbg 2fP1OLG6jpbzu/vC0zuHZFpAV+eAD2odEsr/tp/FHqBVe8S8+94qkoqlyW2hieJcp9+T7RU0G 5vA0R+dSNqEozSr0VDy4IFLFkMc+JbtVFzIF9iXg7LHamSrww36n98lD98Ma0DgWGUXZziy8Y r+jj71KVDs/jrAL9H7p3fSVpzPkG9pi8SMCeVSTdh+ZTZDgJlwZ0VRVUdzJQabxXhskDKq0fJ l4V3T+vxW7Me8Siqv9txBLP7vzdDq8xil+gTgEP4qnlPHivb8+e/CnHqAdycYvI0S9rTsc+wb 7EwFJs3fFQWGdWL1Fvw0TbRbF/mjE4/pNXQxgYo0tva5M7MVPJWQJs33r/dUqOiMImGK9iSVL K6rTQx9wf/QbQy0J8WMPx8V3r4JCm69qnyIMqJEJursCO469WNhAh+kOBDt1gFP7Xy4Vec5ap 09D7Vlui9PVDypCp8D9K3bRIMSZmSPBA+kB6Wy/kwue4Vm91SukwZRWqlg5rv51eFDSLh/0bW obP0bdPDd1YAqsQqMAKhEqnngqHTsx9RyulZFkdGHjDx8duJQn6cbTy93KnHrHI+1ReLWdAhU JoS4xl4v03Vh9Oqd53BV3uhxCUx1+0TLzf0E8neTOjxpv5cXwrWZ75ekFaj6pJ4Xqa0ks1i+l S7fu1o8KzOOBdep/x3MCRsQA30xj8e8GsoDszRtA9T5xMdUJejXvMnPViai0Jxb2inKlk2zHM eRzMyzpak7+X7MXeGmUOxad9wMUZF6qLfbhmYQbwaPs8/riKGSvovraUjZHragmQO2D7zfssT 8pLX8Oj87DDKBRluS3O/4BweFu8hguN/LBqzXVRPAsdFR7XS+BstigzJ7t1kq4H+YbHwD5JgQ scLsQRBxmYA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: 33791@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jordan Wilson writes: Hi Jordan, >> Can you provide a reproducing recipe starting from "emacs -Q"? > > - Have putty in $PATH (version 0.70 on my machine) > - Load Eli's/Michael's patched files.el (error appears regardless) > (load "files.el") > - M-x eshell > - connect to GNU/Linux machine using plink: > /plink:jordan@domain.com:/home/jordan/ > - run executable in working directory > ./test.sh > returns "env: =E2=80=98c:/home/jordan/test.sh=E2=80=99: No such file or d= irectory" I've tried to reproduce the problem with --8<---------------cut here---------------start------------->8--- GNU Emacs 27.0.50 (build 1, x86_64-w64-mingw32) of 2018-10-05 --8<---------------cut here---------------end--------------->8--- This is the Emacs version offered on . The error does not happen. Likely, this is due to the following commit: --8<---------------cut here---------------start------------->8--- commit bbcd5787cb077f8b6c4eba5c1704ad953a298fd7 Author: Michael Albinus Date: Thu Mar 22 09:58:56 2018 +0100 Fix commit c24c5dc4a4 =20=20=20=20 * lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Drop volume letter of localname substitution. Reported by Chris Zheng . --8<---------------cut here---------------end--------------->8--- What happens, if you redefine tramp-handle-substitute-in-file-name after loading Tramp? --8<---------------cut here---------------start------------->8--- (defun tramp-handle-substitute-in-file-name (filename) "Like `substitute-in-file-name' for Tramp files. \"//\" and \"/~\" substitute only in the local filename part." ;; Check, whether the local part is a quoted file name. (if (tramp-compat-file-name-quoted-p filename) filename ;; First, we must replace environment variables. (setq filename (tramp-replace-environment-variables filename)) (with-parsed-tramp-file-name filename nil ;; We do not want to replace environment variables, again. "//" ;; has a special meaning at the beginning of a file name on ;; Cygwin and MS-Windows, we must remove it. (let (process-environment) ;; Ignore in LOCALNAME everything before "//" or "/~". (when (stringp localname) (if (string-match "//\\(/\\|~\\)" localname) (setq filename (replace-regexp-in-string "\\`/+" "/" (substitute-in-file-name localname))) (setq filename (concat (file-remote-p filename) (replace-regexp-in-string "\\`/+" "/" ;; We must disable cygwin-mount file name ;; handlers and alike. (tramp-run-real-handler 'substitute-in-file-name (list localname)))))))) ;; "/m:h:~" does not work for completion. We use "/m:h:~/". (if (and (stringp localname) (string-equal "~" localname)) (concat filename "/") filename)))) --8<---------------cut here---------------end--------------->8--- Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 04:25:47 2018 Received: (at 33791) by debbugs.gnu.org; 29 Dec 2018 09:25:47 +0000 Received: from localhost ([127.0.0.1]:40839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdAsN-0007in-2x for submit@debbugs.gnu.org; Sat, 29 Dec 2018 04:25:47 -0500 Received: from mout.gmx.net ([212.227.15.19]:60615) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdAsL-0007iZ-AG for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 04:25:45 -0500 Received: from detlef.gmx.de ([213.220.156.5]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MTSKd-1gk53N30tj-00SN3J; Sat, 29 Dec 2018 10:25:38 +0100 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <83sgyh5vxv.fsf@gnu.org> <87bm55tpvc.fsf@gmx.com> <83ftug66lf.fsf@gnu.org> Date: Sat, 29 Dec 2018 10:25:37 +0100 In-Reply-To: <83ftug66lf.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Dec 2018 11:10:52 +0200") Message-ID: <87sgygr8fi.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:kd7b32nhnHVFjO8qJbDn7Wn0czVXnLvH0uBn2MZe6Z7CWrR97Xr xY7YfaJ63o8inUkcgc9ZITPuGTXqI7n/iGzaFyduaAqHfeEmB5Wj8lwMG8EVGTtunTf01YM q6mk8gnJa4B3iKGkkSsMIWKSKcFD/eW17mEv++eMsPpB09EaZdhbnvzccEK7ePFTFeWo/7b 7m8z4ljEp41qsVkSMhGpg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:lrFaOfg5h3k=:7vqZGSHEdLG0caDstbG0Cm fx/omkVCdgLIFZ3CzIEd89+YZobMLbuO+jYCgbDlHxLOi7fuZKv710WQSp95X5BaPyRvLhKJp TpcwU0fXW2VfjFvUh0e/mZF4FZbpIu33dhNvcM8LZsCXpYR45kbJPiR4IdKZt1dqm/FrpW1kj kYcuIs+G3NbfPPBfaMw0QEo3GPZvtPNvObpZJj5TVGq4ktz2aVq57A4LsSen6MAoA3io0e2CP 7sd3UOOmfLVmoGT6Vizd2L7GzyPo45H2Tw3IbWBVSZ26YQHSOBOLDKq1twa+eIKdjT/89ywgh HIirzQ5jNpCOWA87ddr6kkCnmrKznARdQDnhZPJj90d0BzQyiXZYZloeBQpoJOFn/9UpgOq/E XWfg2X692DGklbVQThtJgIlArSL8ktmoaokvO39QejeQ7EyyMen03ewMDYn5+C21j7QvQB6eN PUCyzrUNsZPmdnUVzkSnkAm5YA5tasW5EiiniCUNS7YjZMa46pdLAWe9LC9+pU1q56I9eYlwI ujEsXDXUZ4hrpvgT5x7WApvwscK1cw8dDgzz8UcqtAatY8TRnlzOGOOvEkKv3hcmOrVWsu9ql jnAEl+qnDyFbS85Jya12s9z6dU0XPxXCYF41eBel2AcSkcY7ml0Ii50VFYWhMEYCgHbzwNCwZ FDJC4HYYGG8b2vCRBMmi3MNkxCeVsZNbszN+BxEvY/ay3YPbfddlBk+fwjm5+fB+BLp6HgfHQ WEMW70UPGvjui3JjwmUxnUNQ3GN5KrVJLBNRpPmpCjEI7aJ1v4GT0RNRHnKRyvB4/4PEg0qjL sAuyvEvCGh46zYjXWHl11+kPbvwHb2U1QC/513nOUJt7UmkgzqVm20bJRlYkG7m4FVXagCi9P cqWFoXJnj0hF79v8BJutJ7z/xvoJo9jA3gPtP7GLs34oiNE2r5tO2rk2gQDTH1NuGPfYQ68hC aMjAFQSgZZA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: Jordan Wilson , 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: Hi Eli, > Michael, I need your help here. The problem is in this part of > eshell-gather-process-output: > > (cond > ((fboundp 'start-file-process) > (setq proc > (let ((process-connection-type > (unless (eshell-needs-pipe-p command) > process-connection-type)) > (command (file-local-name command))) > (apply 'start-file-process > (file-name-nondirectory command) nil > ;; `start-process' can't deal with relative filenames. > (append (list (expand-file-name command)) args)))) > > The problem is that file-local-name returns a Unix-style absolute file > name /foo/bar/baz, and the following expand-file-name call then > prepends a drive letter on Windows, because there's no longer any sign > of COMMAND being a remote file, and so expand-file-name doesn't invoke > the Tramp handler. This is fixed in the master branch already: --8<---------------cut here---------------start------------->8--- (cond ((fboundp 'start-file-process) (setq proc (let ((process-connection-type (unless (eshell-needs-pipe-p command) process-connection-type)) ;; `start-process' can't deal with relative filenames. (command (file-local-name (expand-file-name command)))) (apply 'start-file-process (file-name-nondirectory command) nil command args))) --8<---------------cut here---------------end--------------->8--- The respective commit is --8<---------------cut here---------------start------------->8--- commit bca35315e16cb53415649e5c0ac2ec0cc1368679 Author: Michael Albinus Date: Thu Sep 6 12:16:00 2018 +0200 Fix Bug#31704 * lisp/eshell/esh-proc.el (eshell-gather-process-output): Do not let `expand-file-name' prefix remote file names with MS Windows volume letter. * lisp/net/tramp.el (tramp-eshell-directory-change): Use `path-separator' as it does eshell. (Bug#31704) --8<---------------cut here---------------end--------------->8--- As you see, it requires two changes, in esh-proc.el and tramp.el. > Btw, isn't it confusing that start-file-process needs only the "local" > part of COMMAND? Why cannot its handler DTRT internally instead? What do you do, if COMMAND is another remote location than default-directory? And more general, there could also be file names in the PROGRAM-ARGS part of start-file-process. Who decides, which of them is a remote file name to be stripped to the local part, and which offers remote file name syntax to be used literally? That's why we have decided (long ago), to not allow remote arguments for both start-file-process and process-file. > Thanks. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 05:00:55 2018 Received: (at 33791) by debbugs.gnu.org; 29 Dec 2018 10:00:55 +0000 Received: from localhost ([127.0.0.1]:40848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdBQN-00007r-8O for submit@debbugs.gnu.org; Sat, 29 Dec 2018 05:00:55 -0500 Received: from eggsout.gnu.org ([209.51.188.92]:44809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdBQL-00007e-H3 for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 05:00:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gdBQC-0005hx-W9 for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 05:00:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gdBQC-0005hr-Sk; Sat, 29 Dec 2018 05:00:44 -0500 Received: from [176.228.60.248] (port=1571 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gdBQC-0007IO-GZ; Sat, 29 Dec 2018 05:00:44 -0500 Date: Sat, 29 Dec 2018 12:00:25 +0200 Message-Id: <83a7ko64au.fsf@gnu.org> From: Eli Zaretskii To: Michael Albinus In-reply-to: <87sgygr8fi.fsf@gmx.de> (message from Michael Albinus on Sat, 29 Dec 2018 10:25:37 +0100) Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <83sgyh5vxv.fsf@gnu.org> <87bm55tpvc.fsf@gmx.com> <83ftug66lf.fsf@gnu.org> <87sgygr8fi.fsf@gmx.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33791 Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Michael Albinus > Cc: Jordan Wilson , 33791@debbugs.gnu.org > Date: Sat, 29 Dec 2018 10:25:37 +0100 > > > The problem is that file-local-name returns a Unix-style absolute file > > name /foo/bar/baz, and the following expand-file-name call then > > prepends a drive letter on Windows, because there's no longer any sign > > of COMMAND being a remote file, and so expand-file-name doesn't invoke > > the Tramp handler. > > This is fixed in the master branch already: > > --8<---------------cut here---------------start------------->8--- > (cond > ((fboundp 'start-file-process) > (setq proc > (let ((process-connection-type > (unless (eshell-needs-pipe-p command) > process-connection-type)) > ;; `start-process' can't deal with relative filenames. > (command (file-local-name (expand-file-name command)))) > (apply 'start-file-process > (file-name-nondirectory command) nil command args))) > --8<---------------cut here---------------end--------------->8--- > > The respective commit is > > --8<---------------cut here---------------start------------->8--- > commit bca35315e16cb53415649e5c0ac2ec0cc1368679 > Author: Michael Albinus > Date: Thu Sep 6 12:16:00 2018 +0200 > > Fix Bug#31704 > > * lisp/eshell/esh-proc.el (eshell-gather-process-output): Do not > let `expand-file-name' prefix remote file names with MS Windows > volume letter. > > * lisp/net/tramp.el (tramp-eshell-directory-change): > Use `path-separator' as it does eshell. (Bug#31704) > --8<---------------cut here---------------end--------------->8--- > > As you see, it requires two changes, in esh-proc.el and tramp.el. I think both can be cherry-picked to emacs-26. But do you know why we need expand-file-name here at all? At the very least, the comment about start-process should be removed, I think. > > Btw, isn't it confusing that start-file-process needs only the "local" > > part of COMMAND? Why cannot its handler DTRT internally instead? > > What do you do, if COMMAND is another remote location than > default-directory? Why is that a problem? We always run the process in default-directory, right? > And more general, there could also be file names in the PROGRAM-ARGS > part of start-file-process. Who decides, which of them is a remote file > name to be stripped to the local part, and which offers remote file name > syntax to be used literally? the caller, of course. But I'm not asking about arguments, I'm asking about PROGRAM, and only about it. > That's why we have decided (long ago), to not allow remote arguments for > both start-file-process and process-file. At the very least, this should be prominently mentioned in the respective doc strings and in the ELisp manual. As written now, this is entirely undocumented. Moreover, the part about "the local part of default-directory" in the doc string and in the manual is confusing, because we have no description of what that means. The only attempt of describing it, in file-local-name's doc string, viz.: It returns a file name which can be used directly as argument of ‘process-file’, ‘start-file-process’, or ‘shell-command’. is IMO unsatisfactory, because it describes how results could be used, not what they are. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 05:04:28 2018 Received: (at 33791) by debbugs.gnu.org; 29 Dec 2018 10:04:28 +0000 Received: from localhost ([127.0.0.1]:40851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdBTn-0000DR-TO for submit@debbugs.gnu.org; Sat, 29 Dec 2018 05:04:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdBTl-0000DE-MR for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 05:04:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gdBTd-0002S6-A9 for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 05:04:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gdBEY-00041H-4H; Sat, 29 Dec 2018 04:48:42 -0500 Received: from [176.228.60.248] (port=4798 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gdBEX-0007Ix-MQ; Sat, 29 Dec 2018 04:48:42 -0500 Date: Sat, 29 Dec 2018 11:48:23 +0200 Message-Id: <83bm5464uw.fsf@gnu.org> From: Eli Zaretskii To: Michael Albinus In-reply-to: <8736qgsp5s.fsf@gmx.de> (message from Michael Albinus on Sat, 29 Dec 2018 09:38:55 +0100) Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <83h8ew691e.fsf@gnu.org> <8736qgsp5s.fsf@gmx.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33791 Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Michael Albinus > Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org > Date: Sat, 29 Dec 2018 09:38:55 +0100 > > Eli Zaretskii writes: > > >> I've tried to debug it, but no chance to do it on Windows. > >> Debugging C sources is a no-go for me there. > > > > Can you tell why? I do that all the time, so maybe I could help. > > When I can find a WIndows machine, I can install Emacs and debug Lisp > sources. Installing a C compiler, building Emacs from sources, and > debugging C sources under Windows is out of my scope, on a borrowed or > stolen machine I have under my control for a short time. Ah, okay. Did you try to make an installation with a debugger and a compiler on a portable device, like DoK? > >> > + (or > >> > + ;; locate-file doesn't support remote file names, so detect them > >> > + ;; and support them here by hand. > >> > + (and (file-remote-p (expand-file-name dir)) > >> ... > > > > You mean, testing file-remote-p _in_addition_ to the tests I proposed? > > No, instead of file-name-absolute-p. Fixed, thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 05:40:48 2018 Received: (at 33791) by debbugs.gnu.org; 29 Dec 2018 10:40:48 +0000 Received: from localhost ([127.0.0.1]:40860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdC2y-00016a-7q for submit@debbugs.gnu.org; Sat, 29 Dec 2018 05:40:48 -0500 Received: from mout.gmx.net ([212.227.15.15]:39075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdC2w-00016I-3Y for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 05:40:46 -0500 Received: from detlef.gmx.de ([213.220.156.5]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LdYdG-1h3DBl1qzK-00indK; Sat, 29 Dec 2018 11:40:39 +0100 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <83h8ew691e.fsf@gnu.org> <8736qgsp5s.fsf@gmx.de> <83bm5464uw.fsf@gnu.org> Date: Sat, 29 Dec 2018 11:40:36 +0100 In-Reply-To: <83bm5464uw.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Dec 2018 11:48:23 +0200") Message-ID: <87h8ewr4yj.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:jjYmqNIeD35pLaU6LzP21YwnwEQTEu+zA6eFxohk/T7ojkx/Was JrGygbxlp4NaNBh7A/qQrwfRVsxHGMyTlAC7PcJ2J4+5g3u70/qPQtGJ3NW0CFHJ4AeTCD5 ZTHy9cuS+s5YSTvadWrvxXTLjtf3G1tAo6ctIkBrua8BWOoY8933/58mNl7s/hKgJWKTeH+ 4bi8bG0CTUdZzikk7katg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:NkoCtTZ4BQg=:U3eKp0xsjqKI01eIYQn55Z BhqahcvQikN8xRi7JEZI38PZmlOeInMPKW8YpJRaDOmQoDwv+a+mXD5BIrfRSs1sUcklkfBCG FSAatD7FI3x7NQodMW0Q5z1qcTYkA62SXR1fK0/w3EXmAKRVa/4PIzWgYbABSmw7i4vVh3/E/ 5LReVMlWmb/EgnJEokEtc19rMQHlARY5UbRpymkRWn/Rc/yN9XUn+ZClnSxc358/QxzVYKbu2 V50Y1ysUfOq9k1gl46gByJEhsh7rmxL9ZovXGtEc6RGsAi5XeD93VAjOOBRrIGYB71t6b5863 /sINSIC3Axi1tjSKcf7jQbPV9BSDxRNr8sCDwdAf1NNtOEmkrNpy+QzTY0O0UexjkpVWDyL76 VjBv3q6K7KT7ZQ+61yb1weR4X7pKBjEAyFD13EzSUo5K2BABglTju2NQRnz+/Ph8/X2Gxat+s eUhclzsN3s4XFwVXqLBPqk+evhNkRemXZnru96dajkGJvQhleS6opeqXdgs0eaNZytH26y9+Z /K7w3ql66eWBfjcLrNKJji3PHZ/35EafOzmwZhf16YRt6nujb54u1vwZkvtGh6E1JGT+jJCbb SYy0/htWjiTTkOQFTxezGA/6B7BP00kEYIT1Y7J0stCnCv5dhfPLMR501u3Rf5tzRPd+ontio 7AloX0oOZuxLuzcGqOknjmdHDmCiAAijBT9yZfeCmEz2b+aOXhVfxNBeTkRwfVrng7kwehIv4 2dv4sLGbydfGpcbEnLlcNaJ0eujexziyw5cr+iZ6FRBE9ys5IPLKhz9SMTd+2PCm9TckaMfyt JLtY7+Ms3Z0Zv5BslyldK6HLDXijzvurY8nUSXiDRPJqqKcQzYifNlXYTOoGFJjCrCZl9ZiPm /dbpOS/+1sP7JO35CxhzDEhmqIF6zVa1fbGRxoKaouwX/J/8t9LIIXFKlOJ1JaK1M1+WlKmqT qGKJy9ilIuw== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: >> When I can find a WIndows machine, I can install Emacs and debug Lisp >> sources. Installing a C compiler, building Emacs from sources, and >> debugging C sources under Windows is out of my scope, on a borrowed or >> stolen machine I have under my control for a short time. > > Ah, okay. Did you try to make an installation with a debugger and a > compiler on a portable device, like DoK? No. Honestly, I'm not interested in investing too much energy working for Windows. Sorry. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 06:13:08 2018 Received: (at 33791) by debbugs.gnu.org; 29 Dec 2018 11:13:09 +0000 Received: from localhost ([127.0.0.1]:40871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdCYG-0001vj-I0 for submit@debbugs.gnu.org; Sat, 29 Dec 2018 06:13:08 -0500 Received: from mout.gmx.net ([212.227.15.18]:41789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdCYD-0001vB-Er for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 06:13:06 -0500 Received: from detlef.gmx.de ([213.220.156.5]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LjZhg-1hEkDp3cng-00baaD; Sat, 29 Dec 2018 12:12:58 +0100 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <83sgyh5vxv.fsf@gnu.org> <87bm55tpvc.fsf@gmx.com> <83ftug66lf.fsf@gnu.org> <87sgygr8fi.fsf@gmx.de> <83a7ko64au.fsf@gnu.org> Date: Sat, 29 Dec 2018 12:12:56 +0100 In-Reply-To: <83a7ko64au.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Dec 2018 12:00:25 +0200") Message-ID: <87d0pkr3gn.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:ToH2la8Ne86aH9/uYiJvz3KUW3cnTPLGCu+61VqsQ5PTQbBHXz5 GLwm980/iKSdsvLi+2UsShDTcX1ELhk/Rxpzz18dfjWDi7y7fV9wwE8ehnjM+N/zhCG0/84 HRRpP2NSJNGpnxo5lq9df96MbIEtewsH6co6fUyxxODlG6JK6QsuIkOCxrdvaEpTDFQIyyY F2Oxz6y7ICbNIrtqH529w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:0/xYCHW7II8=:vWtmx9fYBSusv3neUIzhEz VUjy2/SMQoHiluCHr+Kti8pfbctRpQ6rJz8tssJcCDBqW2bKYxuIPizzpEGPpZIfRJ/mFTk9n bv5PGk5ujHM1aW8elsDSvorkX0epP4k09L0a6cYY65qL61Bcy2JYFz91xp09gyEkYvxyV+hE/ x2Io/Vyl4xD6IQR8J+dTfHqa+UIJ320r/J84PY78DFEhCHTGEHmKmK9zXJHpsO9y0qLB3bfXk RppOk1JaiD3oCX2Wkgg8/SmmYpP21wbGjOFp+S+PgJBMo58TqVlY1a+odiZFTabU+HStJG0oF GNXwi4ojh0KzatW8fbTpR+9HWhNDqy/0e2soiCedcuFo7d0tENIykQHcX7istuidnLsz2N1Wt G9+XXdrh2bYw0rBlOtfrWzPexP1HcyWC4Y5qAkSllqHhzJth4sNHWYWSGbsjzP8JT7sS4aq2p EjPulojTzTKMDYRBuVmWwSy4ArzaauV9LgFtWuw7jiGx5+8b3oPqwPBD6ukj2i8IIQEg5JG9F gNYS7DON0B2N0biz/NjkgJMLQW2qUHh5JEHPvBfX+7VMt9eGcyYocfaA1i9EYOvp52gd/1Sw5 v2kqrQYveqSOMXaGkZgVYsQbtzSN5LqL70Y+6G5QVI98LQZN9k8rjbrAzbcsXl51gX8+v64zt RAfa4O1/MTnkWZuDVLpZDVYhBsLZejE5SNfdKxH0SH2S7o6opoZauakVSHJdwhw7Uj9ZQs+Bp GCKMseiveBhXyOaYtlwEDJHJZ6yKEBNvNZG+g3/WC4YspB9JIeBgMrn1/FvNey9e8hfQl/jjZ EAzT13EwtcxDQOdFIDxBDD4CHPJI69nRWNxmXnCodgGJkaEPOdzJ1eTymvtBds93j2QeKkkzT fKbHiJHoXU8mUQMgBi1NVon53qlvGRR5jyLx+ZxW4pOrnZpMMjt0WwcJAaYmZ+ X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: Hi Eli & Jordan, >> As you see, it requires two changes, in esh-proc.el and tramp.el. > > I think both can be cherry-picked to emacs-26. Done. The change in tramp.el needed some massage. Jordan, could you pls test whether the changes I have applied to the emacs-26 branch work for you? See attachment for the changes. > But do you know why we need expand-file-name here at all? Well, in Emacs 26 we couldn't adapt exec-path for remote processes. This is available since Emacs 27 only. > At the very least, the comment about start-process should be removed, > I think. Done. >> > Btw, isn't it confusing that start-file-process needs only the "local" >> > part of COMMAND? Why cannot its handler DTRT internally instead? >>=20 >> What do you do, if COMMAND is another remote location than >> default-directory? > > Why is that a problem? We always run the process in > default-directory, right? I said "another *remote* location". I don't want to see (let ((default-directory "/ssh:user@host:directory")) (start-file-process "foo" buffer "/ssh:another-user@another-host:foo")) Of course one could raise an error. But usually, this construct doesn't appear as direct as in the example. I believe using a local name for PROGRAM isn't such a burden. >> And more general, there could also be file names in the PROGRAM-ARGS >> part of start-file-process. Who decides, which of them is a remote file >> name to be stripped to the local part, and which offers remote file name >> syntax to be used literally? > > the caller, of course. But I'm not asking about arguments, I'm asking > about PROGRAM, and only about it. See above. I don't believe it would make the life easier for callers of `start-file-process', if we would allow a remote file name for PROGRAM.=20 >> That's why we have decided (long ago), to not allow remote arguments for >> both start-file-process and process-file. > > At the very least, this should be prominently mentioned in the > respective doc strings and in the ELisp manual. As written now, this > is entirely undocumented. Moreover, the part about "the local part of > default-directory" in the doc string and in the manual is confusing, > because we have no description of what that means. The only attempt > of describing it, in file-local-name's doc string, viz.: > > It returns a file name which can be used directly as argument of > =E2=80=98process-file=E2=80=99, =E2=80=98start-file-process=E2=80=99, o= r =E2=80=98shell-command=E2=80=99. > > is IMO unsatisfactory, because it describes how results could be used, > not what they are. The docstring speaks about. --8<---------------cut here---------------start------------->8--- PROGRAM and PROGRAM-ARGS might be file names. They are not objects of file name handler invocation. --8<---------------cut here---------------end--------------->8--- The Elisp manual speaks about. (info "(elisp) Asynchronous Processes") --8<---------------cut here---------------start------------->8--- This function does not try to invoke file name handlers for PROGRAM or for the rest of ARGS. --8<---------------cut here---------------end--------------->8--- Best regards, Michael. --=-=-= Content-Type: text/plain Content-Disposition: inline diff --git a/lisp/eshell/esh-proc.el b/lisp/eshell/esh-proc.el index 94401c5daa..97170eb04b 100644 --- a/lisp/eshell/esh-proc.el +++ b/lisp/eshell/esh-proc.el @@ -279,11 +279,9 @@ eshell-gather-process-output (let ((process-connection-type (unless (eshell-needs-pipe-p command) process-connection-type)) - (command (file-local-name command))) + (command (file-local-name (expand-file-name command)))) (apply 'start-file-process - (file-name-nondirectory command) nil - ;; `start-process' can't deal with relative filenames. - (append (list (expand-file-name command)) args)))) + (file-name-nondirectory command) nil command args))) (eshell-record-process-object proc) (set-process-buffer proc (current-buffer)) (if (eshell-interactive-output-p) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 5fa9f9a44d..5302659b32 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -4580,10 +4580,11 @@ tramp-eshell-directory-change (or ;; When `tramp-own-remote-path' is in `tramp-remote-path', ;; the remote path is only set in the session cache. + ;; Use `path-separator' as it does eshell. (tramp-get-connection-property (tramp-get-connection-process v) "remote-path" nil) (tramp-get-connection-property v "remote-path" nil)) - ":")) + path-separator)) (getenv "PATH")))) (eval-after-load "esh-util" --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 08:43:48 2018 Received: (at 33791) by debbugs.gnu.org; 29 Dec 2018 13:43:49 +0000 Received: from localhost ([127.0.0.1]:40926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdEu4-0007oT-Nr for submit@debbugs.gnu.org; Sat, 29 Dec 2018 08:43:48 -0500 Received: from mout.gmx.net ([212.227.17.20]:50363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdEu3-0007oG-2D for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 08:43:47 -0500 Received: from A715-WIN ([90.221.3.153]) by mail.gmx.com (mrgmx102 [212.227.17.174]) with ESMTPSA (Nemesis) id 0LfYqz-1hA2cv1nKb-00p5EJ; Sat, 29 Dec 2018 14:43:40 +0100 From: Jordan Wilson To: Michael Albinus Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <83sgyh5vxv.fsf@gnu.org> <87bm55tpvc.fsf@gmx.com> <83ftug66lf.fsf@gnu.org> <87sgygr8fi.fsf@gmx.de> <83a7ko64au.fsf@gnu.org> <87d0pkr3gn.fsf@gmx.de> Date: Sat, 29 Dec 2018 13:43:39 +0000 In-Reply-To: <87d0pkr3gn.fsf@gmx.de> (Michael Albinus's message of "Sat, 29 Dec 2018 12:12:56 +0100") Message-ID: <87zhsoxxbo.fsf@gmx.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:mbdINAOQseSXSkhYmS0zTOAYdOLFqW6PlrOKfNa3z4ItbPPTWw+ FnZRAHT/N4CQQ2fVIJzs1hdRgE4+Xb1yuICAbKXqc4NoyLfb2aaaRePulzgBOj2196T6ry9 QkfoQyBw2/8q9/bmU5BaMWdcyAIh+GYO1m6KXvREr3vOeuWAHLI/DThFytTCLgAivb/Sb7h YF56oZB1akncJBBhR3dlg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:X6fi576eBFY=:w2daYx9cwAWc0IWGqNBu1I +Wek8jrY+PCzzJ2Hovem0u1XVuAdkpI6dFki9zopV0mHOlWkJhymdP2WTLEx0Ek2BoQXHmZLM +onnDSm/HWirlZ1LyFR7UU2UZHdlNHPhGaStu8eA27aQazXAp8JOku/RP4diYuVBgwyGdhWfK cFNsiXnVqZwh0f6vz1GguzJJ2LmbrsvbiZYduQavsQnn0WLWyFM3LN8vL1CVZ00EEJJVujmwX j2vBVHqJT+lLip+J21fQTBlIeF0TUapp0Hxywcew0GeueXtvl4JT/94B8vjzO9m6NIlZIfSXV Q8df3JLO/Jt5kCzvAxvaETLE+Yf8hHQVZX4CJzVI8QX2dEcgUG+qDvfHq5niMSU4dvEnEFBtc k6DCXSGevNMW/e8O6Yah9aNugLkPPDjmfuzA0vAbSy1zo7DoMxD/FWHiLFC8rwLbgSYCJf1Iz agJLGT5X6pCk3lcj56Ze1GQpliwlBhQ4B9sbdxkvw02GWAtOEX0vb3b2zs4EtUfuNDghlmBTj Yu4kE8WMny0I0dvAsoXy70ppG6VPmuuXqcqrqyO2v6h+yt9G3FEV7L6nJsPID0ujq5LGJfsND q9xlsp+cobfkKwVu2dTMyVCMDCg9QZTwHII/pzc3odGlb97sCJ4/VjnAkJvo/BL/QOXC6ndj8 mcrshVum+c1HO6VSAND5GwaAl190Poeb4mEkOo96pDQ5yflMtG1XDQYxrarkGLyp3JMpAk8bf jxqB12fNcCwxOOwzhlxhiwDuxlLjpPFH/XCo2usKRBpbQU3HAEEBCHsMEzSnPrOcuPJYxQScV uPiFYdkZSeLD0/iFSJWbGQoDjlGJJUfceqhta8hef7ni4kOSqjORgp5ThI7NclfhAnLkkWq+E hzj/QqyAB/M0jcTgsQhCwVK4BeLWtEMq/9DVJ8H+31O837mz7OLsOsCq/SAky/xY+jHkehD7b dk6xDOYEyDA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791 Cc: 33791@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Michael and Eli, On 2018-12-29 (Sat) at 12:12 (+0100), Michael Albinus wrote: > Jordan, could you pls test whether the changes I have applied to the > emacs-26 branch work for you? See attachment for the changes. The patches fix my problem. Everything now works as expected. Thank you to both of you for fixing this! -- Jordan Wilson Sent from Gnus v5.13, GNU Emacs 26.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 09:19:39 2018 Received: (at 33791-done) by debbugs.gnu.org; 29 Dec 2018 14:19:39 +0000 Received: from localhost ([127.0.0.1]:40932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdFSl-0000EC-Jz for submit@debbugs.gnu.org; Sat, 29 Dec 2018 09:19:39 -0500 Received: from mout.gmx.net ([212.227.17.20]:51243) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdFSi-0000Dw-7C for 33791-done@debbugs.gnu.org; Sat, 29 Dec 2018 09:19:36 -0500 Received: from detlef.gmx.de ([213.220.156.5]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Ma2Lr-1gvCcY1h2l-00LnVr; Sat, 29 Dec 2018 15:19:29 +0100 From: Michael Albinus To: Jordan Wilson Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <83sgyh5vxv.fsf@gnu.org> <87bm55tpvc.fsf@gmx.com> <83ftug66lf.fsf@gnu.org> <87sgygr8fi.fsf@gmx.de> <83a7ko64au.fsf@gnu.org> <87d0pkr3gn.fsf@gmx.de> <87zhsoxxbo.fsf@gmx.com> Date: Sat, 29 Dec 2018 15:19:28 +0100 In-Reply-To: <87zhsoxxbo.fsf@gmx.com> (Jordan Wilson's message of "Sat, 29 Dec 2018 13:43:39 +0000") Message-ID: <878t08qutr.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:Z+BYBoN1BJfmjgsNCO+YOUPu1ncY56Cr66UDg7XP3BLIFzPDNgr xYxl272wqUf8exxJVUrxhGgjbE+O6VbLip4moMZJw81WAKj9XmFy2mGuhI3UNxOVfMOkZ38 OXxxXAyVDxyqMyjnvdD/l7VZ3uhGkU7iYs8L5h2+ZoCBCHuSawEUUH6fO0BoyPfVOZeXTme SL1LynTQIHgJU+vBU4Y1A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:9y1H9TbKNKE=:nPMnQQOA0aXElvr6cGOnLH YEyqo9akhd+aGO39G8GfJUVkHmq++dGI48orG2Sqvt9OgKb+QXDB/abUcxTcuuloxfl7DOtay nsmhR0+e2httnfx6BdGUiwZOS6TJwDAei9Y+zEje58Guull+amGj7/fJo0EFLLAtgq/TVpOlH qzwFtYDtvR2tGE1xWot27X0smHq/I1JFOgNN2Q3DQuCLdLDwawjN8J6udLMb8Q53V4p2MEEs2 qyXQrwaEdGJoRrWYAScMgjiOzPjpRv/D47BBHiLketM2l8CCDYwpRipktRmTXNw+9ADhUzj31 9Fq2RHsRZ66ZX/NZ2fyEiPfMHCQD7PePSRefI3KLUK5i2SpEqQa4P7m+lY5axgI3rOolr97fp XN61Qq/9yDuNsJMlRJYgEaKrZpKae+4vs8wo3g7CjcnryVEFK69X8hxU0g2Et0uOhNH7Zo3TT q78uAa0sxCBjxJYcml5S3S+wRW9ZNWDIZTdmrmjX0DdafLQz3/53toH/Uk/m6Y83elNxQ39ob mxjyR2uKol0oOH/vKGMYTk5PwPnvQj6zQi9gDOnr+e8uZngzZyb2j2Fxq3K0wB5K6e+q9ZAP8 0FpZgYnV3aJi238YLBVUUlv0sFZFvstXPZvQtaIQt3V8HJAfB5D9cdd9//shavVEMAHo7ntml 3CTs4Njo1F39SKQJyKwYJk2WZZu1PwjCFK4MKsZhCWFvcMaGADfnalyMdKsosnH4wF49xpTkd wFwtzJbZOHAECBPR/38MfNmjbN0fQ/udGW0S5qG/E0Baxl9xw07/+A3aX6gOZdWIzolYBolzK Ii2xU5XUd2L1EkraoLOkwUp6NzejjsRvZ8dd+b4MCs/oRTWvNBq2WyFQUZwL3C+JApcuuAxLY RdX0+Wiv8MnaBYiyUogwAxctlVwooW+fgJjumXrSUm5HsS0ptlzMRzXfAObkYnYF9Kxrh8grI zeFQNRzSBIg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33791-done Cc: 33791-done@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Version: 26.2 Jordan Wilson writes: > Hi Michael and Eli, Hi Jordan, >> Jordan, could you pls test whether the changes I have applied to the >> emacs-26 branch work for you? See attachment for the changes. > > The patches fix my problem. Everything now works as expected. Thanks for the feedback. I'm closing the bug. > Thank you to both of you for fixing this! Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 29 10:37:36 2018 Received: (at 33791) by debbugs.gnu.org; 29 Dec 2018 15:37:36 +0000 Received: from localhost ([127.0.0.1]:41609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdGgC-0002Qj-EB for submit@debbugs.gnu.org; Sat, 29 Dec 2018 10:37:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdGgB-0002QV-Fa for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 10:37:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gdGfc-0000xn-4V for 33791@debbugs.gnu.org; Sat, 29 Dec 2018 10:37:22 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gdGfb-0000xR-Ho; Sat, 29 Dec 2018 10:37:00 -0500 Received: from [176.228.60.248] (port=2814 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gdGfb-00041I-0i; Sat, 29 Dec 2018 10:36:59 -0500 Date: Sat, 29 Dec 2018 17:36:39 +0200 Message-Id: <835zvc5oqg.fsf@gnu.org> From: Eli Zaretskii To: Michael Albinus In-reply-to: <87d0pkr3gn.fsf@gmx.de> (message from Michael Albinus on Sat, 29 Dec 2018 12:12:56 +0100) Subject: Re: bug#33791: 26.1; Eshell on Windows connecting to GNU/Linux machine using TRAMP and plink: env: =?utf-8?Q?=E2=80=98c=3A=2Fhome=2Fjord?= =?utf-8?Q?an=2Ftest=2Esh=E2=80=99=3A?= No such file or directory 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> <83sgyh5vxv.fsf@gnu.org> <87bm55tpvc.fsf@gmx.com> <83ftug66lf.fsf@gnu.org> <87sgygr8fi.fsf@gmx.de> <83a7ko64au.fsf@gnu.org> <87d0pkr3gn.fsf@gmx.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33791 Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Michael Albinus > Cc: jordan.t.wilson@gmx.com, 33791@debbugs.gnu.org > Date: Sat, 29 Dec 2018 12:12:56 +0100 > > >> As you see, it requires two changes, in esh-proc.el and tramp.el. > > > > I think both can be cherry-picked to emacs-26. > > Done. The change in tramp.el needed some massage. > > Jordan, could you pls test whether the changes I have applied to the > emacs-26 branch work for you? See attachment for the changes. > > > But do you know why we need expand-file-name here at all? > > Well, in Emacs 26 we couldn't adapt exec-path for remote > processes. This is available since Emacs 27 only. > > > At the very least, the comment about start-process should be removed, > > I think. > > Done. Thanks. > > At the very least, this should be prominently mentioned in the > > respective doc strings and in the ELisp manual. As written now, this > > is entirely undocumented. Moreover, the part about "the local part of > > default-directory" in the doc string and in the manual is confusing, > > because we have no description of what that means. The only attempt > > of describing it, in file-local-name's doc string, viz.: > > > > It returns a file name which can be used directly as argument of > > ‘process-file’, ‘start-file-process’, or ‘shell-command’. > > > > is IMO unsatisfactory, because it describes how results could be used, > > not what they are. > > The docstring speaks about. > > --8<---------------cut here---------------start------------->8--- > PROGRAM and PROGRAM-ARGS might be file names. They are not > objects of file name handler invocation. > --8<---------------cut here---------------end--------------->8--- > > The Elisp manual speaks about. (info "(elisp) Asynchronous Processes") > > --8<---------------cut here---------------start------------->8--- > This function does not try to invoke file name handlers for PROGRAM > or for the rest of ARGS. > --8<---------------cut here---------------end--------------->8--- Thanks, I made that even more explicit and clear. From unknown Sun Aug 10 20:05:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 27 Jan 2019 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator