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.devel Subject: Re: [RFC] Explicity-remote commands in Eshell Date: Mon, 6 Mar 2023 14:07:59 -0800 Message-ID: References: <0298a618-645c-a0c0-172b-9a0491462959@gmail.com> <87fsaie1wq.fsf@gmx.de> 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="16763"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 06 23:08:49 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 1pZJ0j-0004Fi-0g for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 23:08:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZJ03-00031D-Gy; Mon, 06 Mar 2023 17:08:07 -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 1pZJ01-0002oa-NQ for emacs-devel@gnu.org; Mon, 06 Mar 2023 17:08:05 -0500 Original-Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZJ00-0007ns-3t for emacs-devel@gnu.org; Mon, 06 Mar 2023 17:08:05 -0500 Original-Received: by mail-pj1-x1035.google.com with SMTP id cp7-20020a17090afb8700b0023756229427so14641469pjb.1 for ; Mon, 06 Mar 2023 14:08:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678140482; 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=pExAcdMtUKefYsd5VPpYEr2fHtOY124DxceCyE29oJg=; b=EjI+lEqv+jKg3weAL5d99BOK8IzpIeVrpdyzW4GqTR4e68BQhG1zGcZO/4YIBqK3st crSOXTLaKXgIbj9FO0EZGfTVS/O/j6CFt5+hKtfcqhwCwl9fUnKP7JQLnGcQ+N9dt/kr +gxIyG+gtbPbWruAfUU94q5UvMYspYXgCSUsbp3rSqy8vWzcodsazmnrTVbBGoSs3iWq +lnJ6t7VfdgYDAJRxgrnE9rJNmIFRVx2WzgIcg4mqJYr5Yai7Ld75PcoMhwMKkLfsR5J 8unfwah46/9fBZxWUo2WaeRclCscONRcJUXT6nUKBPAoLkwDVIo8BYkGhRLgc3N4F1zY whhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678140482; 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=pExAcdMtUKefYsd5VPpYEr2fHtOY124DxceCyE29oJg=; b=T360XnZnzM14ZcOYvughJv/zfzVJ/QZ9xhc0UyuDX35Q/2a7BakHanJk3nKYNF6X4d ilfdTaq9wzzBlwzKxaJBlGphADZh/8GLKtSiNvcauW8KJXUBLVQPMd5gqA17AEt7zGlk m2/ze55AIaAGwp3MBjG6ZZjEZWdZ8Tz0sj/DqsCBj4dADIdL6bxL2FU+fBiUzR54MYNF obmX1huUP953+NhuM/witygv3VV6y5yQXlwUeod2xjrcg8AGML5Hu8wG0SvtNz+qx56A wZv7XFNzKAvFd3NPdKk67C3108E9wqLI87uepbEpEVACOBfBc5uS2xpVMoYJzwmMDoF7 XMFg== X-Gm-Message-State: AO0yUKU3BRqdDNxeJS29HjaLkIf9h9IDwUmKZLevUN3pxJCt6qRKOZdp Uos20dKJCE5UyIWrOLW8idI= X-Google-Smtp-Source: AK7set+AmnlYiCliC2RfaIvWPN2zbdBbo+7691XsXbWYa7kChohBOeCov6Hpz2b8AKWfgbOMKh7/Vg== X-Received: by 2002:a05:6a21:3385:b0:cd:238f:4f4b with SMTP id yy5-20020a056a21338500b000cd238f4f4bmr13608046pzb.23.1678140482496; Mon, 06 Mar 2023 14:08:02 -0800 (PST) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id t24-20020aa79398000000b0056be1581126sm6939675pfe.143.2023.03.06.14.08.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Mar 2023 14:08:02 -0800 (PST) Content-Language: en-US In-Reply-To: <87fsaie1wq.fsf@gmx.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=jporterbugs@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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:304066 Archived-At: On 3/6/2023 12:09 AM, Michael Albinus wrote: > 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. This is possible too: in fact, explicitly-remote commands should be usable absolutely anywhere a regular command is: in pipelines, subshells, conditionals, etc. (My example was just to show how you might mix an explicitly-remote command with a regular command.)