From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12689: 24.2; Eshell ${cmd} substitution Date: Wed, 04 Mar 2015 19:38:30 +0200 Message-ID: <83ioegpsrt.fsf@gnu.org> References: <1424775372.11596.6@mail.samertm.com> <83bnkaqdp9.fsf@gnu.org> <1425471247.1450.2@mail.samertm.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425490770 6043 80.91.229.3 (4 Mar 2015 17:39:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2015 17:39:30 +0000 (UTC) Cc: 12689@debbugs.gnu.org To: Samer Masterson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 04 18:39:20 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YTDGM-0007DU-7J for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Mar 2015 18:39:14 +0100 Original-Received: from localhost ([::1]:45574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTDGL-0003XT-Hf for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Mar 2015 12:39:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTDGE-0003WF-12 for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 12:39:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTDGA-0001SM-Qm for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 12:39:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTDGA-0001SI-Mp for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 12:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YTDG9-0001qb-Tn for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 12:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Mar 2015 17:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12689 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12689-submit@debbugs.gnu.org id=B12689.14254907277082 (code B ref 12689); Wed, 04 Mar 2015 17:39:01 +0000 Original-Received: (at 12689) by debbugs.gnu.org; 4 Mar 2015 17:38:47 +0000 Original-Received: from localhost ([127.0.0.1]:35210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTDFu-0001q9-Gz for submit@debbugs.gnu.org; Wed, 04 Mar 2015 12:38:46 -0500 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:53692) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTDFr-0001pv-Ua for 12689@debbugs.gnu.org; Wed, 04 Mar 2015 12:38:44 -0500 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NKP00D007AGIB00@mtaout27.012.net.il> for 12689@debbugs.gnu.org; Wed, 04 Mar 2015 19:33:10 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKP00AMF7F6JL40@mtaout27.012.net.il>; Wed, 04 Mar 2015 19:33:10 +0200 (IST) In-reply-to: <1425471247.1450.2@mail.samertm.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100060 Archived-At: > Date: Wed, 04 Mar 2015 04:14:07 -0800 > From: Samer Masterson > Cc: 12689@debbugs.gnu.org > > On Tue, Mar 3, 2015 at 7:54 AM, Eli Zaretskii wrote: > > Does this have any effect on the feature where Eshell can run several > commands simultaneously via a shell-like pipe? Thanks. > > I don't know what feature you're describing. eshell-execute-pipeline was what I had in mind. It's been a while since I last hacked Eshell, so perhaps that was a stupid question, but what prompted it was the fact that your change would wait until a process exited under some conditions, so I wondered whether it will prevent Eshell from firing up several asynchronous processes connected through a pipe. > Here is the output from running > regular pipes: > > ~ $ echo hello | /bin/echo there | /bin/echo hey | echo hi # Without patch > hi > hey > ~ $ echo hello | /bin/echo there | /bin/echo hey | echo hi # With patch > hi > hey > there > hello Not sure why you intersperse internal and external echo, or why did you use echo to begin with. In any case, what you see are bugs, at least in the case of a pipe that cannot connect because the receiving end doesn't read stdin. > First, we should ignore the fact that echo does nothing with stdin, and the > above commands print "hi" in bash. I do not understand why the command without > the patch only prints out "hey\nhi", but it printed that consistently on my > computer. The second output is incorrect (or at the very least unexpected?), > but less incorrect than the first. If this is what you were talking about, then > the commands may have appeared to be simultaneous because they were racing, but > I'm not sure if that's intentional. I'd rather see that a pipe that does make sense, something like cat some-large-file | wc with external commands works as expected, and both programs run simultaneously in parallel (e.g., according to 'top' or a similar tool), not sequentially. Thanks.