From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72450: 29.1; Tramp Failed to Parse OS Name and Version for Windows 11 Date: Mon, 05 Aug 2024 10:27:49 +0200 Message-ID: <874j7zpe62.fsf@gmx.de> References: <86y15cucg3.fsf@gnu.org> <87frrkk7ze.fsf@gmx.de> <867ccwsl77.fsf@gnu.org> <87bk28k1yy.fsf@gmx.de> <8634nksh16.fsf@gnu.org> <877ccwk142.fsf@gmx.de> <861q34sgb3.fsf@gnu.org> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="340"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , dgbulk@gmail.com, 72450@debbugs.gnu.org To: Duncan Greatwood Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 05 10:29:11 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sat5a-000AQL-Rv for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Aug 2024 10:29:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sat5B-0003zd-0H; Mon, 05 Aug 2024 04:28:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sat57-0003xg-TV for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2024 04:28:42 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sat57-0002Lw-IK for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2024 04:28:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=ychxHexFkpqn6IWZI6g07NUy4EL2Ng2ptvoObWFImZY=; b=ERToFVnT8hQSZRbv1ZsjfnPQyPSHv71Jyl3d6dR6zB2wNMsTSXq3zPP2pIXnXPCD7/vfiK0Kjs5B4Z79guDcGjHxqhwnbSVafouCVAkmbAdscuBFf9f+Hr73NagiAZMsVdDGbtdL+IDyp97QjnvlMrHnD/WuZDls/Nem9UUxWk2t/22nfF9tdxDqVxYr5E9lLJX7nwW1It4WFVYMwtKIn3uSe3fK8KmNAzk8rpbASktsU921pE38dSLmVNQ23MfYEDC6ybadi5m4NveIEoyXuogMM/WANqcmojIIErnKFid212ubvQ2+ux0seDPGnBxhTUZbJtb+Jthk5Rpi3C+fTw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sat5S-0000DI-8n for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2024 04:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Aug 2024 08:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72450 X-GNU-PR-Package: emacs Original-Received: via spool by 72450-submit@debbugs.gnu.org id=B72450.1722846511716 (code B ref 72450); Mon, 05 Aug 2024 08:29:02 +0000 Original-Received: (at 72450) by debbugs.gnu.org; 5 Aug 2024 08:28:31 +0000 Original-Received: from localhost ([127.0.0.1]:57862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sat4x-0000BU-5W for submit@debbugs.gnu.org; Mon, 05 Aug 2024 04:28:31 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:44585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sat4u-0000Aw-2K for 72450@debbugs.gnu.org; Mon, 05 Aug 2024 04:28:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1722846473; x=1723451273; i=michael.albinus@gmx.de; bh=ychxHexFkpqn6IWZI6g07NUy4EL2Ng2ptvoObWFImZY=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=kOjyXaKwwRy49k0xmJ0VBjjjeyfONrd4W7MwdNp3yDqMBOYurcKqQxpyieEYMUBw gjOeEuk/8FM5zOZfgGR1pUp27YvSjTkGfwX0o/sgMzWs7SWsm9JfJWNYmimxVKR+m dW/JEoCX5Mxd49PMyCGLZPafNSV1KBLjgMTfZLRiJAACL/DXGpMCmYVnlF5JjLQbk QW7A4DQNC1/ck+x+rvPK8+7KC5+j/R8LXK9oC5Dq2STu15CRB36mhcA2RFFLWVdXw VcmNazrQoNCOJ4vPWp9JDFaTYrgYdR+7N+xjbuLC+p2haMizEET1etnXZjbH97JpV EtGLjAmxhD5PIW9T4w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mlw3N-1rtc6c0Dcx-00pxLq; Mon, 05 Aug 2024 10:27:53 +0200 In-Reply-To: (Duncan Greatwood's message of "Sun, 4 Aug 2024 20:39:19 -0700") X-Provags-ID: V03:K1:psehF0C02GOxAESwNoLzPut0pRjiA6EVv9rsj7DqJsDSgqLKXAQ k8w57jeOXEAB3P5+m03z7J/whMJ9BgDSkQaKYPEnSx7qXqTyzGpxADcszMgAGXOPl79a2SV 550kx0N2hOl5uPUCunAvhyUSEt97h+IFT3lhT22HrCvtRLtFNgFZboBvzCrG2hg/BvNvY7j fZ2XJi32oZ4uYnpEsPm1w== UI-OutboundReport: notjunk:1;M01:P0:jZsazCxlqkg=;0pJ+hiO+t/b4XjkbBlz0O+eN4LK geK6Q9xff0mDIB/qNJf7nlivTryFdPfysSpkFUR+J8LzbXBc0d3HluoG1jTzaKK2JUjV9uSy7 H5hXz3spjTxmXq2EXc/G+4ZF+Ov2aLoyF7hE2ZQ6ztwjX6wQ6XyImBU0s2hiuyBoLf1N3nNoq JK1f/0jEHvd5HV04/dI8G5lKn3XkIIR7O2YO7Qgf1QYNp1vMDPB33XmB3uj2rmtDmzDvkyk0E OSPvw109arj9irMDINmtf6f+02S/nd67N4UFUIrkXV6CQpo9m4xp62UWsdplNM4QPO4wdRoyi lAQfWbP5CfAaOBBwu0JwbCej/qJkggncKJEYS3qCdyy3B6u1Ax7CmsxAKxFCgzYG9XBpq4L+q EfeWaUaYElCiZTy+src4O3obdldXXyFm6iD094Ef6toMKKqczfVSewHKCc+8tinpNIl89ZDGH Mz70oODQcpFys9Zt5JItgDjg6gBHiq2jPfo95T93gLhWBV0DH9RnrgbbYh2DqEQZG6JqpTRsu KLAgMbwXQ1d085JZ3V7rlUvtDDEomrZObLps2DByhgBNs2/paKx0cYwvBz7/DPkqGeaNoWl5f FUP4ViCDUfss/LB7o6oWooT8IDlfzQu9pLr1FjPFbka+DinhkerjHY+uCtjtbAJhoQ8Zn1WqT C81a63kAB7OpjMj6UevAcpKL4JmXW1GmSmAVKMZp2+H/fcbQKMFfTYdhionDG2vkzLa3HJIqN 7ef8cLNXQNAWd3xOVUnZjqS40HBmmbgEghfG8MNCzdo752bXinILrZFRe80hYPZbjMy2cKJ5 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289785 Archived-At: Duncan Greatwood writes: > Hi Michael and Eli - Hi Duncan, > sh-5.2$ uname --version > uname (GNU coreutils) 8.32 > Copyright (C) 2020 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > . > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > > Written by David MacKenzie. > sh-5.2$ > > If I may, the extra characters in the emacs error message might not > come from the uname on windows - that uname seems to work OK on the > windows side at least - it could be a misparsing in emacs (or even an > mistake gathering the error message, I suppose).=20 I also don't believe it comes from uname itself. '[17;120H=E2=80=99' looks rather like an escape code sequence, perhaps emitted from the underlying shell. Something like cursor position, window setting, whatever. A search didn't gave me a clue what's this. After connecting the remote host via ssh, Tramp sends as very first command something like --8<---------------cut here---------------start------------->8--- # exec env TERM=3D'dumb' INSIDE_EMACS=3D'31.0.50,tramp:2.8.0-pre' ENV=3D'' = HISTFILE=3D~/.tramp_history PROMPT_COMMAND=3D'' PS1=3D///245adade605348c086= dac6d8f612435c\#\$ PS2=3D'' PS3=3D'' /bin/sh -i --8<---------------cut here---------------end--------------->8--- Note the TERM=3D'dumb' setting, which ought to suppress such code sequences. Somehow, this doesn't seem to work as expected in your case. Perhaps due to calling /bin/sh. See below for debugging instructions. > i) the target windows machine is not directly accessible right now, it > is accessible via an intervening ssh proxy; That's a valid point. So we need to find a solution. > ii) SMB seems pretty retro to me in 2024, but maybe that's just me. Yes, it is just you. > From an emacs perspective, it seems a shame not to be able to use ssh, > given that modern Windows commonly supports ssh and provides a bash > shell. Depending on your own available bandwidth etc. of course. That is NOT a shame. MS Windows is a non-free operation system, therefore it isn't a primary target for Emacs development. And it doesn't seem to be important. I'm working for Tramp for more than 20 years. During this time, nobody has contributed anything for the sake of MS Windows. And I don't use MS Windows myself; if possible, I fix things, that's it.=20 > BTW, emacs seems to be taking some time before finally producing an > error message. If there is a way to log what is happening in emacs - > what tramp is trying, what happens, etc., I'd be happy to. Or LMK how > I could help otherwise. Set tramp-verbose to 6 in a new Emacs session, prior the ssh connection. When it has failed, there is a *debug tramp/ssh ...* buffer; please send it as attachment. > Best > -DG Best regards, Michael.