all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Duncan Greatwood <dgbulk@gmail.com>,
	Michael Albinus <michael.albinus@gmx.de>
Cc: 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 07:41:32 +0300	[thread overview]
Message-ID: <86y15cucg3.fsf@gnu.org> (raw)
In-Reply-To: <CAN_Aq+ogmKBUxbxVAw=d3WMUOrMHo_fEiJq+ise1BarFY4fG=w@mail.gmail.com> (message from Duncan Greatwood on Sat, 3 Aug 2024 12:54:01 -0700)

> From: Duncan Greatwood <dgbulk@gmail.com>
> Date: Sat, 3 Aug 2024 12:54:01 -0700
> 
> 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’
> 
> Background:
> 
> I have a "Windows 11 Home Edition" remote machine, and am seeking to connect to that machine from emacs
> run on macOS.
> 
> In emacs, I am doing:
> (find-file "/ssh:WINUSERNAME@WIN11HOME:WINPATH")
> with suitable values for WINUSERNAME, WIN11HOME, WINPATH.
> 
> I can ssh to WIN11HOME (it is running the OpenSSH Server), using keys stored locally in my macOS.
> 
> 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". 
> 
> 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.
> 
> Thereafter, tramp produces the "uname/lisp" error above.
> 
> FYI, from the windows side:
>     sh-5.2$ uname -sr
>     MSYS_NT-10.0-22631 3.4.10-87d57229.x86_64

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.

Michael, am I right?

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.





  reply	other threads:[~2024-08-04  4:41 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 [this message]
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
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=86y15cucg3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=72450@debbugs.gnu.org \
    --cc=dgbulk@gmail.com \
    --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.