From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] rc here docs
Date: Tue, 9 Sep 2003 18:12:00 +0100 [thread overview]
Message-ID: <72b594bfc91b8b53b4d2793a941fed5c@vitanuova.com> (raw)
In-Reply-To: <69f5b2e51adfc734027e4cf14ffa8286@collyer.net>
the main advantage of here documents as far as i can see is a
syntactic one; it's nicer to see:
cat << EOF
don't care about ' marks.
$home is where the heart is.
EOF
than its near-equivalent:
echo 'don't care about '' marks.
'^$"home^' is where the heart is.' | cat
particularly when you've got lots of text as a template. balancing
single quotes is very easy to get wrong.
i do sometime regret the lack of here documents in the inferno shell
for that reason (although actually putting them into /tmp seems a
little archaic)
i wonder if there might be room for a "here word" i.e. something that
is equivalent to a word, but looks syntactically something like a here
document. dunno what the syntax would look like though.
prev parent reply other threads:[~2003-09-09 17:12 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
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 [this message]
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=72b594bfc91b8b53b4d2793a941fed5c@vitanuova.com \
--to=rog@vitanuova.com \
--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).