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.bugs Subject: bug#46351: 28.0.50; Add convenient way to bypass Eshell's own pipelining Date: Mon, 27 Dec 2021 20:37:07 +0100 Message-ID: <87lf05algc.fsf@gmx.de> References: <878s812c6a.fsf@melete.silentflame.com> <87eehsz170.fsf@gmx.de> <874kin1z2x.fsf@melete.silentflame.com> <87ft26etuh.fsf@gmx.de> <87tuex1yzo.fsf@melete.silentflame.com> <87czlkbxnh.fsf@gmx.de> <87ee601ey0.fsf@melete.silentflame.com> <871r1yaz36.fsf@gmx.de> <87y245zzjq.fsf@melete.silentflame.com> <83fsqdnc0o.fsf@gnu.org> <87r19xaoqe.fsf@gmx.de> <87o851zwdq.fsf@melete.silentflame.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="12793"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 46351@debbugs.gnu.org To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 27 20:41:58 2021 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 1n1vsc-0003BJ-K0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Dec 2021 20:41:58 +0100 Original-Received: from localhost ([::1]:54330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1vsa-0004zV-Ht for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Dec 2021 14:41:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1voo-0001zG-CL for bug-gnu-emacs@gnu.org; Mon, 27 Dec 2021 14:38:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60995) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1von-00062u-Ra for bug-gnu-emacs@gnu.org; Mon, 27 Dec 2021 14:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1von-0006Ra-PQ for bug-gnu-emacs@gnu.org; Mon, 27 Dec 2021 14:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Dec 2021 19:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46351 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 46351-submit@debbugs.gnu.org id=B46351.164063384024712 (code B ref 46351); Mon, 27 Dec 2021 19:38:01 +0000 Original-Received: (at 46351) by debbugs.gnu.org; 27 Dec 2021 19:37:20 +0000 Original-Received: from localhost ([127.0.0.1]:44308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1vo8-0006QW-76 for submit@debbugs.gnu.org; Mon, 27 Dec 2021 14:37:20 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:42487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1vo6-0006QD-Gs for 46351@debbugs.gnu.org; Mon, 27 Dec 2021 14:37:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1640633829; bh=9w/hFFPYpRhFk4EHiJwTeypNQap1gT2KP7tEeo02yNg=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=NXZ/CX2zEtP6iTCBbYWX9g/KddMrJ8q3Eve+iOZMbdgtTNIPsWE2c9rWcw1NLcRc3 Ho6MDhuE/H1KsRTsG1oc7seYpYrixleMadDbhemEzmJPByvMEmxWQ32p8TR41Hs01R GVgooqFf0wFDFWTCNcwpYurd5ozBhv3qxeT7UTkY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.124.170]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MGz1f-1nEsEQ134t-00E8fN; Mon, 27 Dec 2021 20:37:09 +0100 In-Reply-To: <87o851zwdq.fsf@melete.silentflame.com> (Sean Whitton's message of "Mon, 27 Dec 2021 12:21:53 -0700") X-Provags-ID: V03:K1:MN1HVFl+n/5lZxz36/0mT7/hSvMteEN+tUT56/IAilgGVLCrOGI mJbk1AMnadObdtuVPeB7C8o3w2qL0etuEt9lDqWRyUJWk7fJLcCEEZrUzyV+fb1YA6PEl5a rdZ7qvkMR32wnILw8HkRs553xQjnctN8GLM/1sjDjiW0WEWhqGK428LRVWhC7Mwm0r69n/H KjuqVvyOyPUYhs5kvZ3dw== X-UI-Out-Filterresults: notjunk:1;V03:K0:AfkZHUFt37I=:umm340C3KrcyX2kM8vwAPv iOv/97J1rTHgxbi0794AZ9bq7JfNxlmboetYF7Wv4dYtyZU2GuLSIMi3BbVlVFsu4LAGWDY+S 9x+7BVjvJ1rMUaiMBoloQjf+m/mnSEzHXCW0JQnlvzM+6gSexZ8hsJthWYesH6iv2LbsMsp/e r3sAs5WiJ6U7wp1enJbYcCc26HX+co63Y8cJrJw3e05qWwT5zlIfeuq9ZZv6b/DXYIM+9Tm0W ka4fuMUuxQ8awoco84JO9HmdzWabpgKfxNnlCOYfsmgVNnPKjJZoqF/3irS8c1B4RRoxyShwS 2Kvyt1G/OZHqG2Ar570+Mi12CEEHV57VTetfHz85quR4cddmEOpJdZ55aI2iFtfuUGvNVPBoE sof3NIzSQhZq+35Ym5v1pgjniLTyMi9NuNfKVYy15r0VTyw42UxZvXWSeel/z5T+H7b8W0V21 8Y8qbBD2TG2mPdRgvvzRZ+gL+OFnJ/6B81GXMZGccSGnqjx7duHInvASQHOXgqCCFu3Jggvl7 WUp/Sy0tk+5yCmHsppAg7TM3FNDGtrXyGgP0J0b8jyfWVgkSrWYc+DVGGRRf2YNmO3wECI/An Tbqq/jNke8evbE4YiHEFCb3WUlzOXUv6iyTyQw426awlWA1G22U0yyg4HP0mid4ugsciwNRrT saqCib1PM+KikLyF+RBWowqz6qVbGbOtmn0z2yMFkaW59bps8BPPxurCMUYoR9F5YFv4DtI2x mq4H32JyJzX1COUds5j4UQ6jZhvGTCas+/6dWcWE75auHa7uxTgBHI0DDR5lwH5hGH+kuP3g 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" Xref: news.gmane.io gmane.emacs.bugs:223213 Archived-At: Sean Whitton writes: > Hello, Hi Sean, >> One to rule them all. As soon there is one *|, *< or *> in the command >> line, everything is regarded external. Also commands like ls or cat, >> which behave then like *ls or *cat. > > I see what you mean now, but I don't think either of these options would > be desirable. It would mean that you can't combine Lisp functions with > external commands; for example > > my-lisp-function arg1 arg2 | my-cool-encoder *>output.ogg > > In this case, the first | needs to use Eshell's own pipelining support. > > Similarly something like > > buffer-string # | my-cool-command *| other-cmd *>file > > Does that make sense? Would you agree that this new feature needs to > work only on individual pairs of commands? If you want this complexity (external and internal pipelins and stdin/stout redirection) in one command line, you must mark every single such operator with an asterisk, which might be inconvenient. But you have the eshell history, which gives you the command line including the external asterisks, which let you edit the command prior reexecution. Personally, I could live with both approaches. Your proposal with a leading "||" is similar to my "one rules them all", because it changes the meaning of all pipelines etc in a command line to be external. Best regards, Michael.