zsh-users
 help / color / mirror / code / Atom feed
From: Sweth Chandramouli <sweth@gwu.edu>
To: ZSH Users <zsh-users@sunsite.auc.dk>
Subject: processing of pipelines
Date: Tue, 31 Aug 1999 11:41:12 -0400	[thread overview]
Message-ID: <19990831114112.A19733@cj952583-b.alex1.va.home.com> (raw)

	i've been part of a recent discussion in the comp.unix.shell
newsgroup about how different shells process pipelines, and thought i 
should ask this group about zsh's behaviour.  some quick tests first 
led me to believe that zsh runs each command in a pipeline
sequentially in the current process; some more research now makes me 
think that this only appeared to be the case because i was testing
using a no-op on one side of the pipe, and zsh somehow checks to see 
if the command on the right side of a pipe is actually reading from
the pipe; if not, it treats the pipe like a semicolon.
	my new hypothesis, then, is that zsh (like ksh) runs all commands
in a pipeline in sub-processes except for the last command, which is
run in the current process, but that when the pipe isn't actually
being used, it splits the pipeline up into smaller lists to be
processed individually.  yes?  no?  something else entirely?

	-- sweth.

-- 
Sweth Chandramouli ; <sweth@gwu.edu>
<a href="http://astaroth.nit.gwu.edu/resume/">Will Work For Food.</a>
<a href="http://astaroth.nit.gwu.edu/~sweth/disc.html">*</a>


             reply	other threads:[~1999-08-31 15:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-31 15:41 Sweth Chandramouli [this message]
1999-08-31 22:34 ` Bart Schaefer
1999-09-01  8:29 Sven Wischnowsky

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=19990831114112.A19733@cj952583-b.alex1.va.home.com \
    --to=sweth@gwu.edu \
    --cc=zsh-users@sunsite.auc.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).