From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dnym--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74146: ESHELL prompt shows incorrect working directory on a TRAMP remote host Date: Thu, 31 Oct 2024 16:11:24 -0400 Message-ID: <9AC69372-352A-441C-9AF1-2732F357C4FD.1@smtp-inbound1.duck.com> Reply-To: dnym@duck.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_wh+aIFj/FbHIBZ2ewZ9oQc_=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35139"; mail-complaints-to="usenet@ciao.gmane.io" To: 74146@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 31 22:40:21 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t6ctx-0008qz-07 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 31 Oct 2024 22:40:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6ctg-00008u-PK; Thu, 31 Oct 2024 17:40:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6ctf-00008e-Db for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 17:40:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t6ctf-0000jH-2n for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 17:40:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:Date:MIME-Version:To:Subject; bh=FrRk1g6jQKyjB3bz3KI6RRvsFZjjSEW1jo+ogbtWCjw=; b=iz1L8dMGN1d9eIe7pqbDG5x7JP8U95frheTEJLswRlzOzEKT83TDvAKf5ODanNh+ljlxjJdrEedI80K61vI/c195Sr+452SUJfOSOHlj1O7pit5923WZjEp9KwRaAusxByh/YcnvbGBgfL2SGbKLwMUTazpiAWtcp6Ery1JBV++Bx8CwIkjHcZYPiKrd103s06PpoF26q/H8KRqWObJaR4We/NF2OMJLmG6UTA8a1D8Zku9RqHMtDg424x7olsBs7yF4nD5yO7vv/b9HztCntipZe8/rLrXKlrE7L/7C6CvahVF1o3UycCjJP3cIgezeXd8VQQBejtXJc9whIk0vTg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6ctd-0001t8-UX for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 17:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: dnym@duck.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Oct 2024 21:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74146 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17304107727205 (code B ref -1); Thu, 31 Oct 2024 21:40:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Oct 2024 21:39:32 +0000 Original-Received: from localhost ([127.0.0.1]:44471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6ct7-0001s3-S5 for submit@debbugs.gnu.org; Thu, 31 Oct 2024 17:39:32 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6bVy-0006Xu-9T for submit@debbugs.gnu.org; Thu, 31 Oct 2024 16:11:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6bVx-0003cJ-Ts for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 16:11:29 -0400 Original-Received: from smtp-outbound6.duck.com ([20.67.221.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t6bVv-00083B-N0 for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 16:11:29 -0400 X-Rspamd-Bar: - X-Rspamd-Report: DMARC_POLICY_ALLOW(-0.5) R_DKIM_ALLOW(-0.2) MIME_GOOD(-0.1) R_SPF_ALLOW(-0.2) X-Rspamd-Score: -1 X-Rspamd-Action: no action Original-Received: by smtp-inbound1.duck.com; Thu, 31 Oct 2024 16:11:24 -0400 Feedback-ID: :isSendReply:isDirect:duckcom DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=duck.com; h=Feedback-ID: From: Date: Message-ID: To: Content-Type: Subject: MIME-Version; q=dns/txt; s=postal-KpyQVw; t=1730405485; bh=FrRk1g6jQKyjB3bz3KI6RRvsFZjjSEW1jo+ogbtWCjw=; b=UCpooF73RatmY1BOk/vMAmhCXNiHUf/ek8BOwgwxX578YHkJA09skHA1048n6fEfOlI7Ed5Hy O1xcgM4m0MehDKErZeSN5y3HSk9g6X9Z8HJSrD0k2caPdbZtnumdfmrbbePPRoOdEgNiOlCeYAR G5BubEB+cSTIJngNZ6IbQsc= Received-SPF: pass client-ip=20.67.221.11; envelope-from=dnym@duck.com; helo=smtp-outbound6.duck.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 31 Oct 2024 17:39:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294638 Archived-At: --=_wh+aIFj/FbHIBZ2ewZ9oQc_= Content-Type: text/plain; charset="UTF-8" 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. Running emacs -Q for emacs 27.2 (build 1, ....redhat): ~/.ssh $ cd /ssh:oracle-root:/ /ssh:oracle-root: $ pwd /ssh:oracle-root: /ssh:oracle-root: $ /bin/pwd / ____________________________________ In GNU Emacs 29.4 (build 2, x86_64-w64-mingw32) of 2024-06-23 built on fv-az1388-367 Windowing system distributor 'Microsoft Corp.', version 10.0.22631 System Description: Microsoft Windows 10 Pro (v10.0.2009.22631.4391) Configured using: 'configure --prefix=/mingw64 --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --with-modules --without-dbus --without-compress-install --with-tree-sitter --with-native-compilation=aot 'CFLAGS=-march=nocona -msahf -mtune=generic -O2 -pipe -fstack-protector-strong -fno-optimize-sibling-calls -Wno-error=implicit-function-declaration' CPPFLAGS=-D__USE_MINGW_ANSI_STDIO=1 'LDFLAGS= -lpthread'' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads w32notify w32 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 79952 8898) (symbols 48 7176 0) (strings 32 21044 1276) (string-bytes 1 610559) (vectors 16 16451) (vector-slots 8 335828 16888) (floats 8 40 48) (intervals 56 251 0) (buffers 984 10)) --=_wh+aIFj/FbHIBZ2ewZ9oQc_= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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.

Running emacs -Q for emacs 27.2 = (build 1, ....redhat):

~/.ssh $ cd /ssh:oracle-root:/
/ssh:oracle= -root: $ pwd
/ssh:oracle-root:
/ssh:oracle-root: $ = /bin/pwd
/

____________________________________


In GNU= Emacs 29.4 (build 2, x86_64-w64-mingw32) of 2024-06-23 built = on
 fv-az1388-367
Windowing system distributor 'Microsoft Corp.'= , version 10.0.22631
System Description: Microsoft Windows 10 Pro (v10.0= .2009.22631.4391)

Configured using:
 'configure = --prefix=3D/mingw64 --host=3Dx86_64-w64-mingw32
 --build=3Dx86_64-w= 64-mingw32 --with-modules --without-dbus
 --without-compress-instal= l --with-tree-sitter
 --with-native-compilation=3Daot = 'CFLAGS=3D-march=3Dnocona -msahf
 -mtune=3Dgeneric -O2 -pipe = -fstack-protector-strong
 -fno-optimize-sibling-calls = -Wno-error=3Dimplicit-function-declaration'
 CPPFLAGS=3D-D__USE_MIN= GW_ANSI_STDIO=3D1 'LDFLAGS=3D -lpthread''

Configured = features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LIBXML2 MODULES = NATIVE_COMP NOTIFY
W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS = TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB

Important = settings:
  value of $LANG: ENU
  locale-coding-system: = cp1252

Major mode: Lisp Interaction

Minor modes in = effect:
  tooltip-mode: t
  global-eldoc-mode: t
  = eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: = t
  mouse-wheel-mode: t
  tool-bar-mode: t
  = menu-bar-mode: t
  file-name-shadow-mode: t
  = global-font-lock-mode: t
  font-lock-mode: t
  = blink-cursor-mode: t
  line-number-mode: t
  = indent-tabs-mode: t
  transient-mark-mode: t
  = auto-composition-mode: t
  auto-encryption-mode: t
  = auto-compression-mode: t

Load-path shadows:
None found.=

Features:
(shadow sort mail-extr emacsbug message mailcap = yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache = epa derived epg rfc6068
epg-config gnus-util text-property-search = mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils = mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr = mail-utils time-date cl-loaddefs
comp comp-cstr warnings icons subr-x rx= cl-seq cl-macs gv cl-extra
help-mode bytecomp byte-compile cl-lib rmc = iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook = vc-hooks lisp-float-type
elisp-mode mwheel dos-w32 ls-lisp disp-table = term/w32-win w32-win
w32-vars term/common-win tool-bar dnd fontset image= regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode= prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu = timer select
scroll-bar mouse jit-lock font-lock syntax font-core = term/tty-colors
frame minibuffer nadvice seq simple cl-generic = indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese = tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek = romanian slovak czech
european ethiopic indian cyrillic chinese = composite emoji-zwj charscript
charprop case-table epa-hook = jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs = theme-loaddefs faces cus-face macroexp
files window text-properties = overlay sha1 md5 base64 format env
code-pages mule custom widget keymap = hashtable-print-readable backquote
threads w32notify w32 multi-tty = make-network-process native-compile
emacs)

Memory = information:
((conses 16 79952 8898)
 (symbols 48 7176 = 0)
 (strings 32 21044 1276)
 (string-bytes 1 = 610559)
 (vectors 16 16451)
 (vector-slots 8 335828 = 16888)
 (floats 8 40 48)
 (intervals 56 251 = 0)
 (buffers 984 10))

--=_wh+aIFj/FbHIBZ2ewZ9oQc_=--