zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "Atom 'Smasher'" <atom@suspicious.org>
Cc: zsh-users@sunsite.dk
Subject: Re: command1 >>(command2)
Date: Mon, 20 Sep 2004 09:08:41 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.61.0409200857060.3533@toltec.zanshin.com> (raw)
In-Reply-To: <20040920053918.L344@willy_wonka>

On Mon, 20 Sep 2004, Atom 'Smasher' wrote:

> where is this documented?
> 	command1 >>(command2)

That whole form of redirection, you mean?  Look in "man zshexpn" or the 
info doc section on "process substitution".

> i've found that it's useful for duplicating stdout into multiple commands
> but there doesn't seem to be any control over whether command2 or command3
> finishes first.

That's correct.  The commands in the parens are run as background jobs, 
which means they finish in whatever order the OS schedules them (which is
probably mostly dependent on when they stop receiving input).  Zsh has to 
let them run independently or I/O might deadlock, so you can't control it
except possibly with something like

	command1 >>(command2;sleep 1) >>(command3;sleep 2)


      reply	other threads:[~2004-09-20 16:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-20  9:44 Atom 'Smasher'
2004-09-20 16:08 ` Bart Schaefer [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=Pine.LNX.4.61.0409200857060.3533@toltec.zanshin.com \
    --to=schaefer@brasslantern.com \
    --cc=atom@suspicious.org \
    --cc=zsh-users@sunsite.dk \
    /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).