From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#72450: 29.1; Tramp Failed to Parse OS Name and Version for Windows 11 Date: Thu, 8 Aug 2024 11:28:41 -0700 Message-ID: <95069f51-923e-657c-ead4-ee20c634fb65@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10502"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , dgbulk@gmail.com, 72450@debbugs.gnu.org To: Michael Albinus , Duncan Greatwood Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 08 20:31:00 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 1sc7ue-0002QX-7v for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Aug 2024 20:31:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sc7uG-00013d-Eh; Thu, 08 Aug 2024 14:30:36 -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 1sc7uF-00010z-Mi for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2024 14:30:35 -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 1sc7uF-00026g-9L for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2024 14:30:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=FyZw+MsMOi26IGcOx1yK4lP80JRtmiwCGb7rDToy1wA=; b=gzr+IIyd4KjO+zxqxFaEOqmSlOtTmQI+WHGUSbAIqFjwH3U5mUz60qEz2JbgHfF8JtygK67mmIvC+ep7GTI9xQCNJaZW8wJxAAuStAnA73f/SkVKsNOPM3xwyhuRhvdlbaQ+WR+tfQ8q6CP6oGEM5S125oovWn1RUPFZq1T9Ec+7ueAQtMcIxsZ4cSw+bVN2DClPWee1Kukg3G/XAoX81zR2vMPiUYDawXAJRHlHlbOGp/wlLNKdz87H9Ns6SzcxOxYCUXfydj3InCtJGmdSV/Kr1UZROEvUBwNLfjCKF7BVenM47xexpKid38ZZbzjP97K+6eosNc5PR6Z5iuVpAg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sc7uf-0002lp-Um for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2024 14:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Aug 2024 18:31: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.172314181810582 (code B ref 72450); Thu, 08 Aug 2024 18:31:01 +0000 Original-Received: (at 72450) by debbugs.gnu.org; 8 Aug 2024 18:30:18 +0000 Original-Received: from localhost ([127.0.0.1]:37163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sc7tx-0002kZ-K9 for submit@debbugs.gnu.org; Thu, 08 Aug 2024 14:30:18 -0400 Original-Received: from mail-pf1-f176.google.com ([209.85.210.176]:56383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sc7tw-0002kN-Dl for 72450@debbugs.gnu.org; Thu, 08 Aug 2024 14:30:16 -0400 Original-Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-70eb0ae23e4so1023117b3a.0 for <72450@debbugs.gnu.org>; Thu, 08 Aug 2024 11:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723141724; x=1723746524; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=FyZw+MsMOi26IGcOx1yK4lP80JRtmiwCGb7rDToy1wA=; b=kayYBOXz8VbL31nQLkKXfeoJ9+znnBWkr3xkGHFaTR6RLRce1fsu5sp+1UvLMN/Tsr O9Vzp9wSaHCjbGtfagwDQvy8ixTnlIjrc+4ZSlpHlDigLZjBeJUzyAiBOiZ2DOmCvqu6 +LaYv5F7VhNWEZ7Cbd32gRVq720jad8cHE2XdZ94wU1nH7+6W+l7Wq1OLDHwtG9IHHfe qBWY7g1VgOhK16zgbYHDIE5Ut8MLKbOT/XjoxZFOWdSQVYeRaFYqZneHAUI0HOEmPMw8 EwfqNc9l1ibfGcTnr4UPRkLV1W7lQgMxHz6rKEUk254Oro4jB1WnNWYZ5p94WVg9SCdk tnGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723141724; x=1723746524; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FyZw+MsMOi26IGcOx1yK4lP80JRtmiwCGb7rDToy1wA=; b=i61oU+ZdP3IhTR+3PG5BA0QWfnxd0ILOcG5wvvlFdSFCcoTvUc+fA+ufU9WvPYr+2m viHk+qW9MJSkQulnywLd8dE3at1oyotxHL4OyixNO59rXlw2lNTLmSqQ6LRIJM0sSz5Q euF1gaP7KPvYygla7Yt0/JwJ6QyOsosF0FHEsGwNGLpyITx7rYBTYcXGVTJI/fRL+y6t FIxxw7fVGU8VefR55Uub8lBlfw4Boaj8qzvv+/o+qtf9x8QUEKTvsOyt+IBwm/oVL2qO gGldZfkwNkm5di/v+pFOlkhzpHCiESrBOOwueHbieram4aboO4dmIWCBc4MrTS0v/tpI JgEA== X-Forwarded-Encrypted: i=1; AJvYcCUg4xTCSSoDdlvMc0yTMmbApSbWTXy3m4+cPyqn9OvNSXxX07AElm4NdlAMq2Mx8iE8t1V+kD4krtCQJ8FXQNiDOusJ1Ck= X-Gm-Message-State: AOJu0Yyq7bFsIscv8RbF+wTRvO/cn6FOQCxAvtDYqJGLcmAWo3gruWFA ADFHu+8gKSBmjM9u9fippab3R9FkCOPsJfGYo8fOtJmJIoxiOFaS X-Google-Smtp-Source: AGHT+IGo2/YGs5jeYXxIxja6av3OA8NBpFIF6IMQb+tStavIcKrhv4lQL4syxfSNzKAfVVQvP7SG0g== X-Received: by 2002:a05:6a21:1645:b0:1c2:8b95:de15 with SMTP id adf61e73a8af0-1c6fd017645mr2652391637.53.1723141723720; Thu, 08 Aug 2024 11:28:43 -0700 (PDT) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-710cb22b213sm1413281b3a.62.2024.08.08.11.28.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Aug 2024 11:28:43 -0700 (PDT) Content-Language: en-US In-Reply-To: <874j7zpe62.fsf@gmx.de> 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:289949 Archived-At: On 8/5/2024 1:27 AM, Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > 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). > > I also don't believe it comes from uname itself. '[17;120H’' 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='dumb' INSIDE_EMACS='31.0.50,tramp:2.8.0-pre' ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=///245adade605348c086dac6d8f612435c\#\$ PS2='' PS3='' /bin/sh -i > --8<---------------cut here---------------end--------------->8--- > > Note the TERM='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. Regarding the unusual cursor-positioning ANSI sequences, I may know what this is, since I encountered something similar before: . This is apparently just another one of those sharp corners on MS-Windows that we have to deal with for the sake of backwards compatibility (nice), but that there's no clear way to opt out of (not so nice): . >> 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. Well, I've tried to help make Tramp work a bit better on MS-Windows (my first Emacs patch was to fix Tramp hostname completion on MS-Windows ;)), but this bug is the one where I finally gave up: there's a point where trying to fix Microsoft's mistakes just becomes too time-consuming and bothersome, so I focused my energies elsewhere. As it's been a few years since I looked at this last, the residual irritation has certainly subsided so I wouldn't mind trying to help out in some way, but I'm not sure I have the patience to come up with a patch for this myself.