9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Benn Newman <benn.newman@snc.edu>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: RE: [9fans] A simple rc question
Date: Tue, 15 May 2007 18:03:28 -0500	[thread overview]
Message-ID: <4648BF8D@webmail.snc.edu> (raw)

Duff answered ron's question in “Rc — The Plan 9 Shell”.

   12. Command grouping

   A sequence of commands enclosed in {} may be used anywhere a command is
   required. For example:

      {sleep 3600;echo ’Time’’s up!’}&

   will wait an hour in the background, then print a message. Without the
   braces,

      sleep 3600;echo ’Time’’s up!’&

   would lock up the terminal for an hour, then print the message in the
   background.

>===== Original Message From Fans of the OS Plan 9 from Bell Labs 
<9fans@cse.psu.edu> =====
>> I suspected that and will try it, but the man page is pretty clear (I
>> thought) that
>> a|b is a single command. I still think the & should bind to the
>> pipeline, but ...
>
>a PIPE is a cmd, so i'd expect that too.
>it would also be tedious if
>	cat burp | sed 's/mumble/frog/' | md5sum &
>ran only the md5sum in the background.

--
Benn Newman



             reply	other threads:[~2007-05-15 23:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-15 23:03 Benn Newman [this message]
2007-05-15 23:29 ` ron minnich
2007-05-15 23:35   ` Kris Maglione
  -- strict thread matches above, loose matches on Subject: below --
2007-05-15 15:38 ron minnich
2007-05-15 15:46 ` Charles Forsyth
2007-05-15 15:48 ` erik quanstrom
2007-05-15 16:08   ` ron minnich
2007-05-15 16:18     ` Charles Forsyth
2007-05-16  0:24 ` Kris Maglione

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=4648BF8D@webmail.snc.edu \
    --to=benn.newman@snc.edu \
    --cc=9fans@cse.psu.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).