From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27536 invoked from network); 7 May 1998 08:43:59 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 7 May 1998 08:43:59 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id EAA09382; Thu, 7 May 1998 04:36:06 -0400 (EDT) Resent-Date: Thu, 7 May 1998 04:35:54 -0400 (EDT) From: Andrew Main Message-Id: <199805070834.JAA01366@taos.demon.co.uk> Subject: Re: zsh vs. ksh coproc redirection semantics To: hzoli@cs.elte.hu (Zoltan Hidvegi) Date: Thu, 7 May 1998 09:34:39 +0100 (BST) Cc: schaefer@brasslantern.com, eggink@uni-hamburg.de, zsh-users@math.gatech.edu In-Reply-To: <199805070717.CAA02705@hzoli.home> from "Zoltan Hidvegi" at May 7, 98 02:17:16 am X-Loop: zefram@tao.co.uk X-Phase: The Moon is Waxing Gibbous (85% of Full) X-Stardate: [-30]1116.78 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: <"ZUHaE2.0.rH2.e9NKr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1522 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Zoltan Hidvegi wrote: > <&digit- The file descriptor given by digit is moved > to standard input. Similarly for the stan- > dard output using >&digit-. > > <&p The input from the co-process is moved to > standard input. Ah, now it makes sense. >Probably is. The other solution would be to inplement the >&digit- >syntax and have >&p duplicate, >&p- move the coprocess descriptor. This >is consistent, but incompatible with ksh. Since zsh is already not >compatible with ksh when creating coprocesses, this might be acceptable, >but this can greatly confuse people coming from ksh. I think we should probably just implement the documented ksh behaviour. It we makes fds above 9 visible, then the usual numerical syntax can be used to copy, rather than move, the coprocess fds. -zefram