zsh-users
 help / color / mirror / code / Atom feed
From: Andrew Main <zefram@tao.co.uk>
To: hzoli@cs.elte.hu (Zoltan Hidvegi)
Cc: schaefer@brasslantern.com, eggink@uni-hamburg.de,
	zsh-users@math.gatech.edu
Subject: Re: zsh vs. ksh coproc redirection semantics
Date: Thu, 7 May 1998 09:34:39 +0100 (BST)	[thread overview]
Message-ID: <199805070834.JAA01366@taos.demon.co.uk> (raw)
In-Reply-To: <199805070717.CAA02705@hzoli.home> from "Zoltan Hidvegi" at May 7, 98 02:17:16 am

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


  reply	other threads:[~1998-05-07  8:43 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-02 22:24 exit value of intermediate program in pipe Steve Talley
1998-05-03  0:50 ` Sweth Chandramouli
1998-05-03  1:38 ` Timothy J Luoma
1998-05-03  2:08 ` Bart Schaefer
1998-05-03  6:17   ` Sweth Chandramouli
1998-05-03  9:30     ` Bart Schaefer
1998-05-03 22:15       ` Sweth Chandramouli
1998-05-04  1:35         ` Bart Schaefer
1998-05-04  4:54           ` Sweth Chandramouli
1998-05-04  9:43             ` Bernd Eggink
1998-05-04 11:42               ` Bart Schaefer
1998-05-04 12:03                 ` Bernd Eggink
1998-05-04 15:59                   ` Bart Schaefer
1998-05-05 11:39                     ` Bernd Eggink
1998-05-05 17:03                       ` zsh vs. ksh coproc redirection semantics Bart Schaefer
1998-05-06 10:47                         ` Bernd Eggink
1998-05-06 16:00                           ` Bart Schaefer
1998-05-07  7:17                             ` Zoltan Hidvegi
1998-05-07  8:34                               ` Andrew Main [this message]
1998-05-07  9:26                                 ` Bart Schaefer
1998-05-07  9:34                                   ` Andrew Main
1998-05-07 17:02                                   ` Zoltan Hidvegi
1998-05-07  9:18                               ` Bart Schaefer
1998-05-07 17:10                                 ` Zoltan Hidvegi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199805070834.JAA01366@taos.demon.co.uk \
    --to=zefram@tao.co.uk \
    --cc=eggink@uni-hamburg.de \
    --cc=hzoli@cs.elte.hu \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).