GNU bug report logs - #72450
29.1; Tramp Failed to Parse OS Name and Version for Windows 11

Previous Next

Package: emacs;

Reported by: Duncan Greatwood <dgbulk <at> gmail.com>

Date: Sat, 3 Aug 2024 19:55:02 UTC

Severity: normal

Found in version 29.1

Full log


Message #62 received at 72450 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: dgbulk <at> gmail.com, 72450 <at> debbugs.gnu.org, dgreatwood <at> gmail.com
Subject: Re: bug#72450: 29.1; Tramp Failed to Parse OS Name and Version for
 Windows 11
Date: Thu, 08 Aug 2024 13:18:28 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

Hi Eli,

> But the "sh-5.2$" part of the prompt Tramp would have understood,
> right?  I'm asking whether Tramp could ignore everything else in this
> prompt, the part that is before "sh-5.2$" and the part after it?

That's too tricky for Tramp's prompt detection. We must always make a
balance between a proper prompt regexp, and avoiding false positives.

Just ignoring everything before and after a fix string like "sh-5.2$" is
too risky. And I don't know whether it is worth the trouble. If it isn't
possible to configure the shell prompt, there might be more surprises
for Tramp.

Tramp requires a POSIX shell on the remote side. For good reasons.

Best regards, Michael.




This bug report was last modified 1 year and 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.