zsh-users
 help / color / mirror / code / Atom feed
From: Anthony Heading <aheading@jpmorgan.com>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-users@sunsite.dk
Subject: Re: exec | wc isn't very useful...
Date: Wed, 15 Dec 2004 17:51:46 -0500	[thread overview]
Message-ID: <20041215225146.GA27274@bretton.ny.jpmorgan.com> (raw)
In-Reply-To: <200412151918.iBFJI1F5008660@news01.csr.com>


On Wed, Dec 15, 2004 at 07:18:00PM +0000, Peter Stephenson wrote:
> >     exec | wc
> 
> The syntax doesn't make sense.  You're piping the output of "exec" on
> its own, which doesn't do anything, to "wc". 

Yes... doesn't that just mean that it's free to be assigned any
meaning that an implementer might care to give it?

> Try this:
> exec > >(wc)
> Something like this got broken at one point (by me) but is working in
> the latest version of the shell.

Ah.  Perfect.  I'm sure tried that before and it didn't work -
perhaps I hit the period when it was broken...

> A pipeline is fundamentally different from a redirection.

I don't quite see that - aside from the very real underlying
implementation issues, what is wrong with a conceptual model
that views:
    a | b | c
as pure syntactic sugar for:
    a > >(b > >(c))
?

Would it not be appealing to _define_
    exec | wc
to mean:
    exec > >(wc)

given that it doesn't currently mean anything at all?

Regardless, appreciate your help with identifying a working
syntax...

Rgds

Anthony

This communication is for informational purposes only.  It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates


  reply	other threads:[~2004-12-15 22:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-15 18:59 Anthony Heading
2004-12-15 19:18 ` Peter Stephenson
2004-12-15 22:51   ` Anthony Heading [this message]
2004-12-16 13:50     ` 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=20041215225146.GA27274@bretton.ny.jpmorgan.com \
    --to=aheading@jpmorgan.com \
    --cc=pws@csr.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).