9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Scott Schwartz <schwartz@bio.cse.psu.edu>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] rc here docs
Date: Sun, 31 Aug 2003 21:43:01 -0400	[thread overview]
Message-ID: <20030901014301.12983.qmail@g.bio.cse.psu.edu> (raw)
In-Reply-To: <f715870610921193e5a128cc87b5ce58@plan9.bell-labs.com>

This works correctly (or at least as I expected) in Byron's rc.

; whatis foo
fn foo {cat <<<'        echo foo
'}

The `<<<' is a builtin operator, of which the manpage says:

     Additionally, rc supports ``here strings'', which  are  like
     here  documents,  except that input is taken directly from a
     string on the command line.  Their use is illustrated here:

          cat <<< 'this is a here string' | wc

    (This feature enables rc  to  export  functions  using  here
     documents  into  the environment; the author does not expect
     users to find this feature useful.)




  reply	other threads:[~2003-09-01  1:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-01  0:58 boyd
2003-09-01  1:05 ` David Presotto
2003-09-01  1:43   ` Scott Schwartz [this message]
2003-09-01  3:03     ` boyd, rounin
2003-09-01  3:10       ` Scott Schwartz
2003-09-01  3:14         ` boyd, rounin
2003-09-01  6:48           ` Charles Forsyth
2003-09-01  2:23   ` Geoff Collyer
2003-09-01  2:56     ` boyd, rounin
2003-09-01  3:19       ` Geoff Collyer
2003-09-01  3:33         ` boyd, rounin
2003-09-01  8:36           ` Douglas A. Gwyn
2003-09-01  3:35         ` boyd, rounin
2003-09-01  5:30           ` andrey mirtchovski
2003-09-01  5:36             ` boyd, rounin
2003-09-09 17:12     ` rog

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=20030901014301.12983.qmail@g.bio.cse.psu.edu \
    --to=schwartz@bio.cse.psu.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).