From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#74146: ESHELL prompt shows incorrect working directory on a TRAMP remote host Date: Thu, 31 Oct 2024 17:39:48 -0700 Message-ID: <8da71a1c-720d-eb86-9539-8a4a2f0f85d8@gmail.com> References: <9AC69372-352A-441C-9AF1-2732F357C4FD.1@smtp-inbound1.duck.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35203"; mail-complaints-to="usenet@ciao.gmane.io" To: dnym@duck.com, 74146-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 01 01:41:31 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 1t6fjH-0008y7-00 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Nov 2024 01:41:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6fiu-0003j3-66; Thu, 31 Oct 2024 20:41:08 -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 1t6fip-0003i0-BH for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 20:41: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 1t6fip-00035Z-14 for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 20:41:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=u7Z9Cmc9zNpA2jnmzlMrk8IbL21kIgwy/gCCHv34JKQ=; b=H5OtJbX1Pvu2gInuEpzC+nU7HnBf05sYRq0JZkB7yh2OKneLUzgSVUxEnMEqKuONVei+7E8hRE9+cU0T8hZUNWvETGlozqnW02am1jjwvTUDkgNG3sYP4J1GgefNXfXkXYjx7JF7/HfNAqBYceGZ+Ykkq5xZmeelFKJINEtZIcRQ9pVK4zynDhRzWMEzcr6sUqKhpW2je57n0/lwlE9oenwkXAYHL/FzICH60rngTmTQ4ofzrY3P01B5ZyIxKbh8x9n+WcFbdF2cI598SoHs6xaiJnlIhGn1meKFxaXzKV85aY0kImzPADSZFwTz3GDcLMekQ/Q4nBQ1U2y0tqqSLw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6fio-0000Jo-NK for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 20:41:02 -0400 Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2024 00:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74146 X-GNU-PR-Package: emacs Mail-Followup-To: 74146@debbugs.gnu.org, jporterbugs@gmail.com, dnym@duck.com Original-Received: via spool by 74146-done@debbugs.gnu.org id=D74146.17304216611206 (code D ref 74146); Fri, 01 Nov 2024 00:41:02 +0000 Original-Received: (at 74146-done) by debbugs.gnu.org; 1 Nov 2024 00:41:01 +0000 Original-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 Original-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 Original-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) Original-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) Content-Language: en-US In-Reply-To: <9AC69372-352A-441C-9AF1-2732F357C4FD.1@smtp-inbound1.duck.com> 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:294643 Archived-At: 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...)