rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: John (_You_ hide, they seek.) Mackin <john@physiol.su.oz.au>
To: The rc Mailing List <rc@hawkwind.utcs.toronto.edu>
Subject: Re: Question about redirection
Date: Mon, 20 Jul 1992 20:45:52 -0400	[thread overview]
Message-ID: <199207211045.18924.rc.babat@physiol.su.oz.au> (raw)
In-Reply-To: <92Jul16.121858edt.2581@groucho.cs.psu.edu>

    The strangeness is that >[n=m] means "the thing on the right reads n
    but gets m", while |[n=m] means "the thing on the right reads m but
    gets n.  Backwards!

Not at all.  Or at least I don't think so.  All it takes is the right way
of looking at it; I think I have a right way, and I hope it will answer
Malte's question as to how to explain this to an rc novice.

When we write >[2=1], we think of that as "create two by duplicating one",
and view it like an assignment statement (left receives right).  When
we write |[2=1], we think "the left process's two gets connected to the
right process's one", and don't use the assignment metaphor.

I think that as long as we think about this in the right way, there
should be no problem.

OK,
John.


  reply	other threads:[~1992-07-21  0:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-07-16 10:13 malte
1992-07-16 16:18 ` Scott Schwartz
1992-07-21  0:45   ` John Mackin [this message]
1992-07-21  2:06     ` Scott Schwartz
  -- strict thread matches above, loose matches on Subject: below --
1992-07-15 10:44 malte
1992-07-15 11:00 ` Tim.Goodwin

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=199207211045.18924.rc.babat@physiol.su.oz.au \
    --to=john@physiol.su.oz.au \
    --cc=rc@hawkwind.utcs.toronto.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.
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).