From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 31 17:39:32 2024 Received: (at submit) by debbugs.gnu.org; 31 Oct 2024 21:39:32 +0000 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 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 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 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 MIME-Version: 1.0 Subject: ESHELL prompt shows incorrect working directory on a TRAMP remote host Content-Type: multipart/alternative; boundary="=_wh+aIFj/FbHIBZ2ewZ9oQc_=" 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 To: bug-gnu-emacs@gnu.org Received: by smtp-inbound1.duck.com; Thu, 31 Oct 2024 16:11:24 -0400 Message-ID: <9AC69372-352A-441C-9AF1-2732F357C4FD.1@smtp-inbound1.duck.com> Date: Thu, 31 Oct 2024 16:11:24 -0400 From: dnym@duck.com 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-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=_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_=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 31 20:41:01 2024 Received: (at 74146-done) by debbugs.gnu.org; 1 Nov 2024 00:41:01 +0000 Received: from localhost ([127.0.0.1]:45336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6fim-0000JG-Qj for submit@debbugs.gnu.org; Thu, 31 Oct 2024 20:41:01 -0400 Received: from mail-ot1-f53.google.com ([209.85.210.53]:52453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6fih-0000Iy-4A for 74146-done@debbugs.gnu.org; Thu, 31 Oct 2024 20:40:58 -0400 Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-718066adb47so783085a34.0 for <74146-done@debbugs.gnu.org>; Thu, 31 Oct 2024 17:40:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730421589; x=1731026389; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=u7Z9Cmc9zNpA2jnmzlMrk8IbL21kIgwy/gCCHv34JKQ=; b=M2rZZcmaksCiUT6BDcR85FKoun4MQQClsaRjBxJ0sQjnFoNrlcJjFCKkjZdcnGeY/W /SF2R4sbOBTl/ER2Nv6p6jfF0HDZO78LhHRuO0jEWC+FRbYnFaeZCZnZjnQyfthhrMzl Ycf+fonmom8BGv/Y14MOY1NPo4qnXm38ZmYhLpSC/KJsU3Q2RuqtvHT8OqwjJxgwtSdz lt+EMGHkvy+v3RJHRTyHFJxJFNcDFqw4hId9xJ2E4CfZcbfGgpXTk5huEm12mm+O0Y8u SGynxGnNNuCiKH1lV/DescukjpmQvgVMU8Kyx34h8g+sR4/cpnsvCM+zNvSsbYjqk284 aMqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730421589; x=1731026389; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=u7Z9Cmc9zNpA2jnmzlMrk8IbL21kIgwy/gCCHv34JKQ=; b=n28TAnyENWcgElGiZoa9/MBWqfEDKAdNHkMWS7xf2UmvAMO60D3rXgf4kUYnKVDPsu 5CwobO5CXHGRCo23SX6XaCzlF11jH+WRXmVkON/IrPBk3iAiZNq0NXSYTDjQ+27f4jWb k7AgnR3Cy7Fvooc2/fn+iw88U3bWGVgBzrbFyt2daK0lxJFdLlkQ/geqd+BJSoGMLkkq AOyn49FcLJyFoAa9YFbXeXR7Da6rbhE4YunZ/qtMRTBGvf022LeGbjVn4wjTnekN0QG/ FYQJBkZrmhUTeGPk7Z3u7/tvCAs++l+g+XGzedDUD3dwELjY+BjQPwfnPgorN0lm3ibm 1rxw== X-Forwarded-Encrypted: i=1; AJvYcCVcHvA1MJc461QRlW/dqoU8rVYZp8HD1F0hMBWz9Bo9+0OYDwt6DDhRLufY9YZOe7+y19/xfxsxrFzm@debbugs.gnu.org X-Gm-Message-State: AOJu0YxNNvuvtnpseXklAQdRrAZOt98EHONC/tVCTxDKAXna5s0p4YoR Qk5YQqPsKdunVY5EFSW1ZEoJ2r6hnjHA2xf1CvKNMkbHeo/f5y/L X-Google-Smtp-Source: AGHT+IHeIu3vLQz5a/w51uORhso2VXTwvxPEFkaAa1+6QP0DFdov0Z6VhBziArLzrNNy2cidK+UwGQ== X-Received: by 2002:a05:6870:332a:b0:288:6365:d7a2 with SMTP id 586e51a60fabf-2949f0b2f88mr1731039fac.44.1730421589239; Thu, 31 Oct 2024 17:39:49 -0700 (PDT) Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id 41be03b00d2f7-7ee45298a89sm1584235a12.16.2024.10.31.17.39.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 31 Oct 2024 17:39:48 -0700 (PDT) Message-ID: <8da71a1c-720d-eb86-9539-8a4a2f0f85d8@gmail.com> Date: Thu, 31 Oct 2024 17:39:48 -0700 MIME-Version: 1.0 Subject: Re: bug#74146: ESHELL prompt shows incorrect working directory on a TRAMP remote host To: dnym@duck.com, 74146-done@debbugs.gnu.org References: <9AC69372-352A-441C-9AF1-2732F357C4FD.1@smtp-inbound1.duck.com> Content-Language: en-US From: Jim Porter In-Reply-To: <9AC69372-352A-441C-9AF1-2732F357C4FD.1@smtp-inbound1.duck.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74146-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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...) From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 01 03:27:26 2024 Received: (at 74146) by debbugs.gnu.org; 1 Nov 2024 07:27:26 +0000 Received: from localhost ([127.0.0.1]:47443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6m45-0005sF-UF for submit@debbugs.gnu.org; Fri, 01 Nov 2024 03:27:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6m42-0005s7-Vg for 74146@debbugs.gnu.org; Fri, 01 Nov 2024 03:27:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6m3x-0002kT-Gr; Fri, 01 Nov 2024 03:27:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/MWjOIfHoVx8y7EZzplcRoU0qV/2WIHzQEBXtrcGMIA=; b=UAVbIeh7NSTk +dvKsNbEhdAytHNQpRkGgdXk3wSjWqNHkEW9UKR4gxda8lmAudJlPOVR3b4KABtYE9gYtHfOE8AP/ j766K8JCUEvK9iAROuHEaMvHl/HS8DztV8WXvjwIluiJ2hvgbp5OUCGcTCCrADPYroNXjR3wXqtRY x4mTEmkcWvRzb7mmBtsVzWTp1vIQ193oMIbd0e0gxcSruDvA4pQoCyX+tI8NSWw6Ia/0q5XFmUbBy klChqNsNyidTNApTIyUjFvsNFb/fbokWTReL+YIc5xvkS8u9yfb64874Rtwy76l81neVQNIDMhOoi nlPWPnnJdglwXJGw+OKKrQ==; Date: Fri, 01 Nov 2024 09:27:16 +0200 Message-Id: <86o72z1kiz.fsf@gnu.org> From: Eli Zaretskii To: Jim Porter In-Reply-To: <8da71a1c-720d-eb86-9539-8a4a2f0f85d8@gmail.com> (message from Jim Porter on Thu, 31 Oct 2024 17:39:48 -0700) Subject: Re: bug#74146: ESHELL prompt shows incorrect working directory on a TRAMP remote host References: <9AC69372-352A-441C-9AF1-2732F357C4FD.1@smtp-inbound1.duck.com> <8da71a1c-720d-eb86-9539-8a4a2f0f85d8@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74146 Cc: jporterbugs@gmail.com, dnym@duck.com, 74146@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Thu, 31 Oct 2024 17:39:48 -0700 > From: Jim Porter > > 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...) I'm guessing that the difference is because we want to convert any backslashes into forward slashes, and also make the drive letter explicit if needed. Perhaps it is worth our while to add a comment to this effect there. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 07 16:59:53 2024 Received: (at 74146) by debbugs.gnu.org; 7 Nov 2024 21:59:53 +0000 Received: from localhost ([127.0.0.1]:49865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9AXg-0006TN-Vg for submit@debbugs.gnu.org; Thu, 07 Nov 2024 16:59:53 -0500 Received: from mail-pg1-f169.google.com ([209.85.215.169]:58388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9AXe-0006TA-EI for 74146@debbugs.gnu.org; Thu, 07 Nov 2024 16:59:51 -0500 Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-7e9e38dd5f1so1213278a12.0 for <74146@debbugs.gnu.org>; Thu, 07 Nov 2024 13:59:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731016724; x=1731621524; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=toT18LuX75tqOqYKke1siPdQknH28qKcvTQYWG2TK5Y=; b=dGTHQpke6bKO60KJb3+O2WT2POB4lyj+4KVb3LzUO408akqbhLrZN0nCXR6l+2eB+d mouv/L5+CahTzRrhffH0TO8sbq/ZqL8ZwnUExNY5vHJJBarFXPmRow+6af7WBApsgh0r 8uUQKee9fY2GSZicCEY0czSl7tsnAYtwtIzWwzcKFMH2Uio+WQ2d87FTEplJ7yS+0u2h aY4dFGijT8jneqbwCezNZ7usjoO1bt6P1eXCoibGyvVfKa/3C8UEZxJjt1YMNz2RnmZO 3RgLt2s99lmdNup3F3cU46KHOoRgT/MchdAPdp34fgvCzynGi6YYHVlIZcNsIpnbfSK2 pQ2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731016724; x=1731621524; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=toT18LuX75tqOqYKke1siPdQknH28qKcvTQYWG2TK5Y=; b=kPjQxzKcZv8XExsVdDlSK0Y9WdANUukhSAW07KHe6fwsh4LN/5RcCL9JiflxgrVTQa 937/t3MnfQHcR+inpC7B0hRwVoM0ZtCW+HH6Dq830DY3BCmJUGTvejVd98RwYp1FuFoK nxWniQQbIgGizCX2k/OyvAHHQmZOIx9mife2db/+HMESwy20FpXwLaRDNLCUNC6Z+3jw Aew0jw39+h7xcoVJbGDeljG3wTDjGrWtXc6K4Xi97wpPeXFbtEtQPnTI+JixoH2ysBFM RberUZRbjYCMFKOTUi+Hw5b/4i98hB5lEmMkGonBulyaalrcLturWo/sxiJZkB1xOY+z yAEA== X-Forwarded-Encrypted: i=1; AJvYcCVGAVpYX8tFnNhXlzcJfOn0QDW08UbWTilsimgQFSfXhe9FLR4XIiDjQTB/q2UuOPcyZOFqjA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwD2TOVmEXTfJdNgUEwdoA/z/5NVWbAXpEC7KBH+LRUoTD4pSiT 0GPjWL6HE9W00hfuiFlfU7Pa3pFvjCBff6WKVZrVF46otwZqYKRk X-Google-Smtp-Source: AGHT+IGltPV0MwyaaTFEAiZoZgCaC5Th0p67UpF6iXNZ2hvTlFkcaF11kB3X+RCbjYjtWkGhX9o1Lw== X-Received: by 2002:a05:6a20:258a:b0:1db:eea1:7de7 with SMTP id adf61e73a8af0-1dc229a7488mr779864637.18.1731016724497; Thu, 07 Nov 2024 13:58:44 -0800 (PST) Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-724079aa8e2sm2191996b3a.92.2024.11.07.13.58.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Nov 2024 13:58:44 -0800 (PST) Message-ID: Date: Thu, 7 Nov 2024 13:58:43 -0800 MIME-Version: 1.0 Subject: Re: bug#74146: ESHELL prompt shows incorrect working directory on a TRAMP remote host Content-Language: en-US To: Eli Zaretskii References: <9AC69372-352A-441C-9AF1-2732F357C4FD.1@smtp-inbound1.duck.com> <8da71a1c-720d-eb86-9539-8a4a2f0f85d8@gmail.com> <86o72z1kiz.fsf@gnu.org> From: Jim Porter In-Reply-To: <86o72z1kiz.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74146 Cc: 74146@debbugs.gnu.org, dnym@duck.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 11/1/2024 12:27 AM, Eli Zaretskii wrote: >> Date: Thu, 31 Oct 2024 17:39:48 -0700 >> From: Jim Porter >> >> 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...) > > I'm guessing that the difference is because we want to convert any > backslashes into forward slashes, and also make the drive letter > explicit if needed. Perhaps it is worth our while to add a comment to > this effect there. Yeah, looking into this some more, I think it's for making the drive letter explicit. However, I also think we actually want to use 'expand-file-name' on *all* systems, not just MS-Windows. On GNU/Linux, if I'm in a subdirectory of $HOME, the Eshell implementation of "pwd" will print "~/some/directory", but the external "/usr/bin/pwd" will print "/home/jim/some/directory". Since the Eshell built-in commands are supposed to be like their external counterparts, I think we want to expand the value of 'default-directory' all the time. I've therefore made this change on the master branch so that "pwd" in Eshell behaves as expected, and added a NEWS entry to inform users in case they want to revert to the old behavior. From unknown Tue Jun 17 22:10:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 06 Dec 2024 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator