zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: Bi-directional pipe
Date: Sun, 11 Jun 2006 12:24:27 -0700	[thread overview]
Message-ID: <060611122427.ZM6891@torch.brasslantern.com> (raw)
In-Reply-To: <20060611150638.GP740@prunille.vinc17.org>

On Jun 11,  5:06pm, Vincent Lefevre wrote:
} Subject: Re: Bi-directional pipe
}
} Could you give an example?

A correct one?  No.

} I'd say that's a bug in the command that starts the bidirectional
} pipe.

Exactly.

Note that we're not really talking about "a bidirectional pipe" here.
We're talking about a loop in a pipeline -- there are two pipes, each
from a stdout to a stdin.  It's only "bi"-directional because there
are only two processes in the loop.

} I don't see how commands like grep could do anything.

You mean, why would anyone even think of connecting two programs this
way?  Side effects.  Consider tee, the "w" command in sed, or anything
that produces stderr output that might be interesting.

More likely, though, is that someone writes a new program expecting it
to work in such a loop, but without thinking through the consequences.


  reply	other threads:[~2006-06-11 19:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-07 12:50 Guillaume Chazarain
2006-06-07 14:56 ` Peter Stephenson
2006-06-07 15:41   ` Guillaume Chazarain
2006-06-09  3:28 ` Bart Schaefer
2006-06-09  9:06   ` Guillaume Chazarain
2006-06-09  9:51     ` Bart Schaefer
2006-06-11 15:06       ` Vincent Lefevre
2006-06-11 19:24         ` Bart Schaefer [this message]
2006-06-09  9:33   ` Peter Stephenson

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=060611122427.ZM6891@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --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).