From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22346 invoked from network); 5 May 1998 09:06:03 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 5 May 1998 09:06:03 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id FAA17099; Tue, 5 May 1998 05:02:18 -0400 (EDT) Resent-Date: Tue, 5 May 1998 05:02:18 -0400 (EDT) From: Andrew Main Message-Id: <199805050902.KAA04301@taos.demon.co.uk> Subject: Re: Speaking of "coproc" ... To: schaefer@brasslantern.com (Bart Schaefer) Date: Tue, 5 May 1998 10:02:27 +0100 (BST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <980503024337.ZM31103@candle.brasslantern.com> from "Bart Schaefer" at May 3, 98 02:43:37 am X-Loop: zefram@tao.co.uk X-Phase: The Moon is Waxing Gibbous (69% of Full) X-Stardate: [-30]1106.88 X-US-Congress: moronic fuckers X-Headers: OTT X-Mouse: +++ ????? +++ Out Of Cheese Error. Redo From Start. X-Parrot: no, it's only resting. X-Personality: INTJ X-email-is-not-HTML: X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"zZmkF2.0.6B4.QMjJr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3931 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Bart Schaefer wrote: >How does one close the input to the coproc, so as to send it an end-of-file? >The only thing I've come up with is "coproc exit" which seems rather silly >and which closes both the input and the output. Coprocesses are a bit of a mess. I'd like to make it possible to attach the coprocess to specified fd numbers, just like file redirections, so that one could close either pipe with the ">&-" syntax. This would also make it possible to have multiple independent coprocesses. To do this properly I think we'd need an extended redirection syntax, to allow redirecting file descriptors of more than one digit; perhaps we could do something like the rc syntax? -zefram