From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72450: 29.1; Tramp Failed to Parse OS Name and Version for Windows 11 Date: Thu, 08 Aug 2024 08:20:44 +0300 Message-ID: <86plqjmvyr.fsf@gnu.org> 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> <874j7zpe62.fsf@gmx.de> <87zfpqm73s.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38749"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dgbulk@gmail.com, michael.albinus@gmx.de, 72450@debbugs.gnu.org To: Duncan Greatwood Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 08 07:22:04 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 1sbvb9-0009sa-Hi for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Aug 2024 07:22:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbval-0004JO-Bb; Thu, 08 Aug 2024 01:21:39 -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 1sbvaj-0004JB-5l for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2024 01:21:37 -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 1sbvai-0003CH-Sg for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2024 01:21:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=+xagDfm3Jqb+xyI0DUJu6ruTc1FhoXv8QvR3q2ZVhVY=; b=DJaCIPg5Yt/Ds1JdeNAO++vZqeOFNypyNxhmwAszUUVeZbBDXKxycfb4PBLTzaHO0kxyKA5Nz98dgXhL4NMVCu4Xr1wGtv4AAXyJMpWyaBoq+ljhDRY1fUvcjxOVv/ktEtcC/8+Ji8QyfbTSHV/c2YOgiMoRFRM6NmRmFPsL4xrqO7qHYvU18GWM8BCjurX+4ZjTetyijnKcfG22NqSWWIRX45835jCgRydbY20gF1zZ+CFBhZY8Qof7Awo65W3PxMI9IuNwXI2KPQ+6vu0n74ao/gbdOhzwyKUPc+dmMxGxsNWQNTvd+TIR4BkoN9U9tdbsJfUMrD4R+qeTsbXBGQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbvb7-0006tX-UB for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2024 01:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Aug 2024 05:22:01 +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.172309448226379 (code B ref 72450); Thu, 08 Aug 2024 05:22:01 +0000 Original-Received: (at 72450) by debbugs.gnu.org; 8 Aug 2024 05:21:22 +0000 Original-Received: from localhost ([127.0.0.1]:35329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbvaU-0006rO-9T for submit@debbugs.gnu.org; Thu, 08 Aug 2024 01:21:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbvaS-0006qo-2g for 72450@debbugs.gnu.org; Thu, 08 Aug 2024 01:21:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sbvZv-00039n-Pa; Thu, 08 Aug 2024 01:20:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=+xagDfm3Jqb+xyI0DUJu6ruTc1FhoXv8QvR3q2ZVhVY=; b=QzhQQkFXgsgO RyFSYTJjLm+TU6qvAAaNBJR9LfPWZaz5ejJOie43s7E16fhpnN6ETMFxRAcz7ZfRFRSJR7yBTZHla ZPSHsRF4FFgps8MG/VNZFjZx8lPAVkqLEARO6zbNX9sfRmkrY7Vfl2hR1wDQgI81b22K5VO3Inhk8 /w04VtjoGEQm5E3MI/axmZuLm2N7buvmdMYgB5W7xg+cszxUONWpyeqLjRWXZp1ETCLFhPe/6YNYD /Bt2p592i3wj1ZejtK8JMBY19gld1hIAzS/sRirD6qYmiYMpYPcTkaWg8p3QxkPbUiBdUdeBTgmSi L/hoB8YxsQumGGJF0teaiw==; In-Reply-To: (message from Duncan Greatwood on Wed, 7 Aug 2024 14:46:29 -0700) 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:289911 Archived-At: > From: Duncan Greatwood > Date: Wed, 7 Aug 2024 14:46:29 -0700 > Cc: Eli Zaretskii , dgbulk@gmail.com, 72450@debbugs.gnu.org > > Re: > > [?25l[2J[m[Hsh-5.2$[1C]0;C:\Windows\system32\conhost.exe [?25h > > The actual prompt that appears on the screen is: > sh-5.2$ > > Please note that "C:\Windows\system32\conhost.exe" is not a prompt, it is not output as text on the terminal, it > is the "job name" that Windows provides. (FYI, conhost.exe is the core Windows process that provides any > prompt, whether PowerShell, command prompt, or bash/sh). > > As a point of comparison, when I ssh to a Linux machine the "job name" is simply ssh. > > I don't know why the string emacs-tramp is seeing as the prompt appears to include the job name and those > control characters. I have looked on client side and server side, and don't see a way of suppressing/changing > the job name in Window's OpenSSH, nor the control characters either. > > I tried it in iTerm and in Terminal. I tried it from macOS (with ssh proxy) and from Linux (no proxy). All the same > failure. > > Unless there can be different handling in respect of the job name, I don't see an approach to use ssh to > access the windows box with tramp. Maybe Tramp could recognize and ignore the cursor-motion parts? Alternatively, file a bug to the MS-Windows terminal development team, and ask them to provide at least optionally the standard behavior exhibited by Posix platforms.