From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70792: 30.0.50; [PATCH] Add Eshell support for expanding absolute file names within the current remote connection Date: Mon, 06 May 2024 17:56:18 +0100 Message-ID: <87y18mdglp.fsf@zephyr.silentflame.com> References: <5b881f54-4c29-f8d8-d1f7-57b44e7cfc80@gmail.com> Reply-To: Sean Whitton Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5081"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 70792@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 06 18:56:57 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 1s41e4-000172-VG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 May 2024 18:56:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s41du-000865-SH; Mon, 06 May 2024 12:56:46 -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 1s41dm-0007yl-LU for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 12:56:43 -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 1s41dl-000492-I7 for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 12:56:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s41e9-0007KE-Ou for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 12:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 May 2024 16:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70792-submit@debbugs.gnu.org id=B70792.171501461628150 (code B ref 70792); Mon, 06 May 2024 16:57:01 +0000 Original-Received: (at 70792) by debbugs.gnu.org; 6 May 2024 16:56:56 +0000 Original-Received: from localhost ([127.0.0.1]:39091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s41e3-0007Jy-Ie for submit@debbugs.gnu.org; Mon, 06 May 2024 12:56:55 -0400 Original-Received: from sendmail.purelymail.com ([34.202.193.197]:57560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s41dx-0007Js-Fp for 70792@debbugs.gnu.org; Mon, 06 May 2024 12:56:53 -0400 DKIM-Signature: a=rsa-sha256; b=E6xvEH8dYCR0IS4He9f9nNGtb7YfZBJHIzGXF8fwAInR0MSU0fG8R8MpRef/7Q2Aq7RyZvrhQL5zNUuvxH8kWP4zAGLG02tvJEYCh5q5LsfaLRcWPEQ5wURFmTCOct8ve+TJI6tNf4Hfyr9LtJZhLpTb663/FAKRCDjRzVvGzBYxUmiC8pQ/duVn6ei9CSIof0L7fyNxRGYEJukZKtBJEwtrnWZ3SfR6KixWrtjMB89zMRmB3hh8CdmRXKzaG3JSgOjZ+GOLn3VNm+Wx4DmfKYQiRjmJ7e3pQLQva9+5jsdSlDKimvgHx0h0GpLkT55+ICfDbmQOubO9X1mto4YtZA==; s=purelymail2; d=spwhitton.name; v=1; bh=PVnJGiTdUEfmc5fV/c1h/kA1gBbXo32N31PiKUGShBc=; h=Received:Received:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=bn3gCS4uw7IwTRVj/7GMa2zyQlSGxz6ZFV2y3rQ5M1AdriA6UcQGk+78Fsyso+coT12EtEClVcgo977wynCC6YxA7taXfonhvSHtjb/h88xDSkcuo1wpCWA4+D26m8KzCyhBoIXta0auPBjHk9dfb01uNWFuVN0Sw8hEg9tTgjmwtBXqE8Eq7A1qspFZ3AjEUIe9qiRY9i8iaTCqr4sXUHSGuFHOinPNAs/GSwIy9A9IDZERjCsE0xDWfe4SaPtdnJ7qP3y4TEVFaXRmqPO7NRQcsE7GSzx80vquQ2VwCMPrgTfTexw6+qJH4/e0wrxpymngtJcxpH3TKCoXrlkT7g==; s=purelymail2; d=purelymail.com; v=1; bh=PVnJGiTdUEfmc5fV/c1h/kA1gBbXo32N31PiKUGShBc=; h=Feedback-ID:Received:Received:From:To:Subject; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: 70792@debbugs.gnu.org Original-Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1854597812; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 06 May 2024 16:56:19 +0000 (UTC) Original-Received: by zephyr.silentflame.com (Postfix, from userid 1000) id 20C14947D9B; Mon, 6 May 2024 17:56:18 +0100 (BST) In-Reply-To: <5b881f54-4c29-f8d8-d1f7-57b44e7cfc80@gmail.com> (Jim Porter's message of "Sun, 5 May 2024 13:58:55 -0700") 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:284591 Archived-At: Hello, On Sun 05 May 2024 at 01:58pm -07, Jim Porter wrote: > One oddity of Eshell is that even when you're connected to a remote host > (usually you just "cd" into a remote directory using Tramp syntax), absolute > file names are still on your *local* host when running any Lisp > commands. However, running *external* commands (programs on the remote host), > absolute file names are on that remote host. > > When you think about how it's implemented, this makes sense: Lisp commands > always run in the local Emacs process, but external programs run on the > remote. So naturally, "absolute" file names are relative to a different host > in either case. This wouldn't be so bad except that it's not always obvious > when you're running a Lisp command or not. Eshell provides Lisp > implementations of some common commands, like "cat", but it also transparently > falls back to the external program if it doesn't understand some option. This > results in it being pretty hard to tell what's going to happen when you run a > command. Isn't this by design? It lets you, e.g, transparently copy a file from the local to the remote host just with 'cp'. -- Sean Whitton