From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Duncan Greatwood <dgbulk@gmail.com>, 72450@debbugs.gnu.org
Subject: bug#72450: 29.1; Tramp Failed to Parse OS Name and Version for Windows 11
Date: Sun, 04 Aug 2024 10:28:05 +0200 [thread overview]
Message-ID: <87frrkk7ze.fsf@gmx.de> (raw)
In-Reply-To: <86y15cucg3.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 04 Aug 2024 07:41:32 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
Hi Duncan and Eli,
>> I am seeing the following error from Tramp:
>> tramp-error: ‘echo \"`uname -sr`\"’ does not return a valid Lisp expression: ‘"MSYS_NT-10.0-22631
>> 3.4.10-87d57229.x86_64" [17;120H’
Well, the problem is the trailing '[17;120H' in the output, which looks
like an ESCAPE sequence. I have nod idea what it is good for. Tramp
doesn't expect it, and raises an error during a sanity check. The string
returned by 'uname -sr' looks proper.
>> By default, the shell produced for the ssh to windows is a PowerShell, which I can well understand is not what
>> Tramp expects; Tramp was producing an error "Couldn't find remote shell prompt for /bin/sh".
Correct.
>> To address, now I detect the tramp attach on the Windows side and, in the Tramp case, move to shell "sh" for
>> the Windows prompt.
OK.
> My suggestion is not to have the MSYS 'uname' on your Path. I think
> it gets in the way, and Tramp doesn't really need it on Windows.
I don't know, whether it is the MSYS 'uname', or something else on the
remote side, which produces the ESCAPE sequence.
> Michael, am I right?
Tramp calls 'uname -sr' for a reason. It checks, whether the remote
system has changed its kernel since the last visit, and in case of, it
invalidates all cached values.
> In general, too many Windows users of Emacs install MSYS in a way that
> its utilities are on the system-wide Path, without understanding the
> caveats and subtle issues this could cause.
First we need to know where the ESCAPE sequence comes from. Any idea?
Best regards, Michael.
next prev parent reply other threads:[~2024-08-04 8:28 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-03 19:54 bug#72450: 29.1; Tramp Failed to Parse OS Name and Version for Windows 11 Duncan Greatwood
2024-08-04 4:41 ` Eli Zaretskii
2024-08-04 8:28 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-08-04 9:15 ` Eli Zaretskii
2024-08-04 10:37 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-04 10:45 ` Eli Zaretskii
2024-08-04 10:56 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-04 11:01 ` Eli Zaretskii
2024-08-05 3:39 ` Duncan Greatwood
2024-08-05 8:27 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <mvmcymnfjcc.fsf@suse.de>
2024-08-05 11:56 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-05 22:14 ` Duncan Greatwood
2024-08-06 7:40 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-07 21:46 ` Duncan Greatwood
2024-08-08 5:20 ` Eli Zaretskii
2024-08-08 11:06 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-08 11:11 ` Eli Zaretskii
2024-08-08 11:18 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-08 11:11 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-08 18:28 ` Jim Porter
2024-08-08 19:03 ` Duncan Greatwood
2024-08-10 10:34 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87frrkk7ze.fsf@gmx.de \
--to=bug-gnu-emacs@gnu.org \
--cc=72450@debbugs.gnu.org \
--cc=dgbulk@gmail.com \
--cc=eliz@gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.