From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19270 invoked from network); 3 Aug 2005 07:54:32 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 3 Aug 2005 07:54:32 -0000 Received: (qmail 14441 invoked from network); 3 Aug 2005 07:54:26 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 3 Aug 2005 07:54:26 -0000 Received: (qmail 11204 invoked by alias); 3 Aug 2005 07:54:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9214 Received: (qmail 11112 invoked from network); 3 Aug 2005 07:54:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 3 Aug 2005 07:54:07 -0000 Received: (qmail 11265 invoked from network); 3 Aug 2005 07:54:06 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 3 Aug 2005 07:54:01 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Wed, 3 Aug 2005 08:51:54 +0100 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 3 Aug 2005 08:56:36 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j737rxS4015120 for ; Wed, 3 Aug 2005 08:53:59 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j737rwbj015116 for ; Wed, 3 Aug 2005 08:53:58 +0100 Message-Id: <200508030753.j737rwbj015116@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@sunsite.dk Subject: Re: coproc eperiments In-reply-to: <20050729.192345.41642707.Meino.Cramer@gmx.de> References: <20050729.192345.41642707.Meino.Cramer@gmx.de> Date: Wed, 03 Aug 2005 08:53:56 +0100 From: Peter Stephenson X-OriginalArrivalTime: 03 Aug 2005 07:56:37.0075 (UTC) FILETIME=[DFB85A30:01C59800] X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Meino Christian Cramer wrote: > But if I am doing: > > coproc bc > rxvt zsh & > > ( and then in the new shell > noglob echo 3*6 >&p > Bad file descriptor > > As I think to know (*VERY* carefully) beside other things the > filedescriptors of a parent process are inherited to the child > process. > > Why is the zsh started by rxvt started by the first zsh not able to > use &>p ? I realise no one answered this... It's not the intention that subshells inherit coprocesses. They will inherit fd's, but not any status information that indicates the fd is associated with a coprocess. In fact, the fd should probably be marked "close on exec" in this case. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************