From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24491 invoked by alias); 7 Aug 2011 17:50:33 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29652 Received: (qmail 22516 invoked from network); 7 Aug 2011 17:50:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: neutral (ns1.primenet.com.au: 74.125.82.43 is neither permitted nor denied by SPF record at ntlworld.com) X-ProxyUser-IP: 86.27.188.118 Date: Sun, 7 Aug 2011 18:50:02 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: How to misplace an entire pipeline Message-ID: <20110807185002.6a042cab@pws-pc.ntlworld.com> In-Reply-To: <110805203111.ZM32508@torch.brasslantern.com> References: <110805203111.ZM32508@torch.brasslantern.com> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 05 Aug 2011 20:31:09 -0700 Bart Schaefer wrote: > Suspend a pipeline whose tail is a builtin that has already exited, and > the whole job gets lost, orphaning the left hand side: This sounds like the extra-special code that takes account of the fact that the right hand side of a pipline is run in the current job but allows you by weird tricks to treat it as a separate job anyway. The suspension is supposed to cause a fork, so you forfeit the ability to have the result within the current shell in return for being able to put the job into the background. What it's supposed to do if the part executing in the current shell is already finished I have no idea; presumably then it has no need to fork, though whether there's a special case for the special case is another question. This is code I don't go near; I'm not even convinced in this case that Sven ever completely understood it and I remember trying it years ago and being puzzled by the results. Search for the quotation from the Nibelungenlied. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/