zsh-workers
 help / color / mirror / code / Atom feed
From: Andrew Main <zefram@tao.co.uk>
To: schaefer@brasslantern.com (Bart Schaefer)
Cc: zefram@tao.co.uk, zsh-workers@math.gatech.edu
Subject: Re: zsh vs. ksh coproc redirection semantics
Date: Thu, 7 May 1998 09:27:16 +0100 (BST)	[thread overview]
Message-ID: <199805070827.JAA01262@taos.demon.co.uk> (raw)
In-Reply-To: <980506132628.ZM14415@candle.brasslantern.com> from "Bart Schaefer" at May 6, 98 01:26:28 pm

Bart Schaefer wrote:
>That doesn't address the issue of how to close the coproc input in the
>basic zsh model.  Is "coproc exit" really going to be the approved way?

That's a separate issue.  I think the best solution is tied into access
to file descriptors above 9: make the coprocess fds be 10 and 11, and
then you can do (ignoring for the moment the single digit restriction of
the syntax) "10>&- 11>&-" to close them.  ">&p" would be shorthand for
">&10", and so on.

What syntax to use for these fds is another issue altogether.  We're
seriously short of special characters, and I don't see a good syntax
that's compatible with POSIX.  (The best I see is to put ">;" preceding
the multi-digit version of the normal syntax.)  OTOH, it would probably
be reasonably easy to simply allow multi-digit fd numbers with an option,
enabled by default only in zsh mode.

-zefram


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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <980506090047.ZM13585@candle.brasslantern.com>
1998-05-06 16:52 ` Andrew Main
1998-05-06 20:26   ` Bart Schaefer
1998-05-07  8:27     ` Andrew Main [this message]

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=199805070827.JAA01262@taos.demon.co.uk \
    --to=zefram@tao.co.uk \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@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).