From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Duncan Greatwood <dgreatwood@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, dgbulk@gmail.com, 72450@debbugs.gnu.org
Subject: bug#72450: 29.1; Tramp Failed to Parse OS Name and Version for Windows 11
Date: Thu, 08 Aug 2024 13:11:16 +0200 [thread overview]
Message-ID: <874j7vgtgr.fsf@gmx.de> (raw)
In-Reply-To: <CAGg=3NUnPqU84kQM3GaeQ87fBS_wnbHLkrEv47dGc4kdzCe7WA@mail.gmail.com> (Duncan Greatwood's message of "Wed, 7 Aug 2024 14:46:29 -0700")
Duncan Greatwood <dgreatwood@gmail.com> writes:
Hi Duncan,
> 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.
>
> Unless you have any other suggestions :-)
As said, I know nothing about MS Windows specifics. But if the shell on
the remote side would be POSIX conform, setting PS1 a fixed string
should do the job. Perhaps there's somthing on the MS Windows side like
~/.profile, where you could add such setting.
> Thanks again.
Best regards, Michael.
next prev parent reply other threads:[~2024-08-08 11:11 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
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 [this message]
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=874j7vgtgr.fsf@gmx.de \
--to=bug-gnu-emacs@gnu.org \
--cc=72450@debbugs.gnu.org \
--cc=dgbulk@gmail.com \
--cc=dgreatwood@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.