From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: [RFC] Explicity-remote commands in Eshell Date: Mon, 06 Mar 2023 09:09:57 +0100 Message-ID: <87fsaie1wq.fsf@gmx.de> References: <0298a618-645c-a0c0-172b-9a0491462959@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23757"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Jim Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 06 09:10:52 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pZ5vn-00062D-06 for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 09:10:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZ5v3-0007Wx-GG; Mon, 06 Mar 2023 03:10:05 -0500 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 1pZ5v1-0007WQ-6b for emacs-devel@gnu.org; Mon, 06 Mar 2023 03:10:03 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZ5uz-000739-7p for emacs-devel@gnu.org; Mon, 06 Mar 2023 03:10:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1678090198; i=michael.albinus@gmx.de; bh=aJ+RBs00YErQzUetXCGVajl2aN2BZVezQZ845Si//gE=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=aPDefSW7rnmAtDHmobbzH6LuId1A7l3U1+PiHSpVqwDc7mdZqknWYz0XEpaNY0TnJ LCzI7nUyox0jCeHK9qM9gw1RmcU8sGEXZlkFvh8NpiicWwI2YyQ2hUEQMpNf6JrOvt bbyncPzACeWaaj0RUz6XuUO7VZn8Tr0hmzXoxKXhe2qgANICZ0uFTSO8NoKrlJmobE MyKyta1Y0skmX+YSQIywntzC877Z6kPuq/Zw06vhqA7rjRvEkTOmQ8YbdSplrnFwcf 7We7V/FTJ7YRcY/vDcEndZOYt85F7yuMyj/KoZh/KFiRlMYOHHNC+rIPzY/UVPagFD K4FiMDjCW5DIw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MRCOE-1pu2Xi2VSW-00NCvi; Mon, 06 Mar 2023 09:09:58 +0100 In-Reply-To: <0298a618-645c-a0c0-172b-9a0491462959@gmail.com> (Jim Porter's message of "Sun, 5 Mar 2023 18:35:43 -0800") X-Provags-ID: V03:K1:ValuZO5ynOKIc0AtTdQWxCFalELax70dt8xcB5Y6ySSXEHipYDb HChl7qVKW6kYarc+mkxxvnylmebG2auMB7ayECp3xA53a5uefzpYGE12e4hdOjVYKrK5yXF qAIlFtxlh8Qicp8iiChcfFwVVUtaafjHW1Gs6hwxFj170Nqz88HIAV4VQ799+K2vwpZwG0c fvetigq+1E/ZisE0yfR9g== UI-OutboundReport: notjunk:1;M01:P0:UabAYFvA4qc=;OfO1L0kBJxUeUq7LSZXahwtR6eY oIZM0kuNtHPrsa0HIgb1Th7CxVCsP9MbsYuqI5p5Svee5gVS7oTrffTYtZ5xMz0cm9Yty/qI6 ycNXZFUUFNtL/aYQKp5RXvLshBbsAp5Mp5oBAEy1sT6MMF90BPiPuJOXp1OmDakuf1ylGB2gW Sc5p+CbHUlEXJTThI/0Zx/hDSDYmoaDbLIqmvdg9rjPZeQ/IHwZH2J6IZRjaoP23yt/R9x08i kVfz+TOxufUPPb86xtyZLWo70Uc0dFSVy1n9t6kzgX7QcM93g7lRFK7gvLeZWPX3gBEyqiSFC jmGXHlSz81aCWmZUutqTZl7T0E/xaURJf99egFijEkkpIFXDWms3r7eTRzU12KqoHHfXvb6dm 72xJlJ5karQjUAp73MaOFhbCHmL4rd6NddTtc+vCwhscKmZNmQq+d8eOSc+7n2cUhrBxP1oVS bLWuEFCQMrraxTk+sLPQltbgpadw0GGy3qsg0Ao9u8+tLJnj4aZbLs9UtIesEPQs7j/l4s19f u0f4PBe3PZjUxYIaboKIN9YT+F+sSy5l3KFzdJLv12puAt58Mq8gG93eakowXzFujRKPApeZL M512yNuG2k9V3GhkYVmkMdCTHDWDcv/fGtyPgc742mXjxg7OcvyRyVXOk/U5swsHCRwGjAxG2 drjpR7R+h5HeEztjZMg1mZCIFtpsD4E/sUKVPrbG813A8lSRaot5Phga3aF+7u1CPRQa/UsOv kFLWnKuDj7WkFoOhwBkhgVck+ojyTBOe7y8g91EkhZe/rZDSTWtE3jv7enO6noN/mTNKr/Hf Received-SPF: pass client-ip=212.227.15.15; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304018 Archived-At: Jim Porter writes: Hi Jim, > Instead, I think we could make this easier: > > /ssh:user@somewhere:remote-command | local-command > > What do people think of the above syntax? It's a little bit different > from the usual Tramp syntax, since the local part shouldn't be > expanded using 'expand-file-name'; it's an executable somewhere on the > remote $PATH. I can't think of any problems with supporting this > syntax in Eshell[1], but I'm interested to hear others' thoughts. I've skimmed over the patch, and there's nothing to object from Tramp pov. I'm not a regular Eshell user, so I don't know how useful it will be. One remark: Why don't you allow remoteness everywhere? Sth like --8<---------------cut here---------------start------------->8--- /ssh:user@somewhere:remote-command | /ssh:another-user@elsewhere:another-remote-command --8<---------------cut here---------------end--------------->8--- This even with multiple pipes in a row. Mixed with local commands. And using just the shorter version "command", which means a local or remote command according to default-directory. "/:command" is a nice trick, btw :-) Best regards, Michael.