9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] here document
Date: Fri, 19 Oct 2007 09:25:52 -0400	[thread overview]
Message-ID: <317753d39f453785fbb938998d6ae7c5@quanstro.net> (raw)
In-Reply-To: <20071019124427.GA844@shodan.homeunix.net>

> I think it is considerably easier to create here documents on the fly (eg.
> awk output) than correctly quoted strings. 

that's the beauty of rc-style quoting.  a simple sed script is enough
to stuff '.  it's easy to do this on the fly.  your awk script needn't
know.  i wrote a bundle-like utility ~10 years ago for a shell i wrote
that used this trick as my shell didn't have here documents.

> But for me the memory vs. temp
> file argument is largely irrelevant, due to ramfs.

what does that mean?  surely you're not running ramfs from
your profile.

- erik



  reply	other threads:[~2007-10-19 13:25 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-04  1:51 [9fans] venti Russ Cox
2007-10-07 20:51 ` Steve Simon
2007-10-08  7:02   ` [9fans] here document arisawa
2007-10-08  7:46     ` sqweek
2007-10-08 11:59       ` arisawa
2007-10-08 12:12         ` erik quanstrom
2007-10-08 12:47           ` roger peppe
2007-10-08 13:09             ` erik quanstrom
2007-10-08 14:02               ` roger peppe
2007-10-08 15:14                 ` erik quanstrom
2007-10-08 16:34                   ` [9fans] International Workshop on Plan 9 Sape Mullender
2007-10-10  0:37         ` [9fans] here document Scott Schwartz
2007-10-10  0:46           ` erik quanstrom
2007-10-19  6:20             ` arisawa
2007-10-19 10:59               ` erik quanstrom
2007-10-19 12:44                 ` Martin Neubauer
2007-10-19 13:25                   ` erik quanstrom [this message]
2007-10-19 13:56                     ` Martin Neubauer

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=317753d39f453785fbb938998d6ae7c5@quanstro.net \
    --to=quanstro@quanstro.net \
    --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).