unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jim Porter <jporterbugs@gmail.com>
To: dnym@duck.com, 74146-done@debbugs.gnu.org
Subject: bug#74146: ESHELL prompt shows incorrect working directory on a TRAMP remote host
Date: Thu, 31 Oct 2024 17:39:48 -0700	[thread overview]
Message-ID: <8da71a1c-720d-eb86-9539-8a4a2f0f85d8@gmail.com> (raw)
In-Reply-To: <9AC69372-352A-441C-9AF1-2732F357C4FD.1@smtp-inbound1.duck.com>

On 10/31/2024 1:11 PM, dnym--- via Bug reports for GNU Emacs, the Swiss 
army knife of text editors wrote:
> 
> DESCRIPTION OF PROBLEM:
> 
> Running emacs -Q for emacs 29.4 (build 2, x86_64-w64-mingw32):
> 
> ~/.ssh $ cd /sshx:oracle-root:/
> /sshx:oracle-root:~/ $ pwd
> /sshx:oracle-root:/home/opc/
> /sshx:oracle-root:~/ $ /bin/pwd
> /
> 
> There should be no tilde before / on the second line and the `pwd`
> command (which is eshell's own `pwd` written in elisp) on the second
> line should not report .../home/opc/ but rather /sshx:oracle-root: like
> below.

Thanks for the report. This is an MS-Windows only issue, fixed in 
33997047e891d5513c4f33ab78ad353746ed16e2 on Emacs master (so version 31).

In the meantime though, you can customize 'eshell-pwd-convert-function' 
to avoid this mis-conversion; the 'identity' option should work. (I'm 
not actually sure why this has a different default value on MS-Windows 
vs other paltforms, but it's been that way for a long time so I'll just 
about opening that can of worms for now...)





      reply	other threads:[~2024-11-01  0:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-31 20:11 bug#74146: ESHELL prompt shows incorrect working directory on a TRAMP remote host dnym--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-01  0:39 ` Jim Porter [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8da71a1c-720d-eb86-9539-8a4a2f0f85d8@gmail.com \
    --to=jporterbugs@gmail.com \
    --cc=74146-done@debbugs.gnu.org \
    --cc=dnym@duck.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).