From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <58e2155e54c999d45cdcd0ad7033abed@comcast.net> From: Gregory Pavelcak Date: Wed, 7 Nov 2007 20:21:55 -0500 To: 9fans@cse.psu.edu Subject: Re: [9fans] late to the party - Here docs In-Reply-To: <276D99AB-6285-4ED0-BEB6-6033428AD660@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: ef10c276-ead2-11e9-9d60-3106f5b1d025 This may be spectacularly stupid, but . . . It seems to me that the Plan 9 (or UNIX) way here, given pipes and good text processing tools, is to think that there is absolutely no need for me to write rc scripts the way that rc demands that I write them as long as I have a (perhaps sed or awk based) preprocessor. So, instead of actually writing echo 1 echo 2 . . . echo n one might just write echoon 1 2 . . . n echooff and pass it through the preprocessor before it gets run by rc. Is that nuts? It seems to me that, if you don't write a lot of long here doc using scripts, you can just write the echos, but if you do, it might be worthwhile to do something like that. Just a mildly buzzed thought. Man, the Berkshire Brewing Company makes some good beer. :-) Greg