From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: "Russ Cox" To: 9fans@cse.psu.edu Subject: Re: [9fans] rc funny - still perplexed MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Fri, 3 Jan 2003 11:27:23 -0500 Topicbox-Message-UUID: 3b7cf3b2-eacb-11e9-9e20-41e7f4b1d025 Perhaps I wasn't clear. It's not just that EOF2 has to go in the first column. The here document does not start until all the braces close. If you want the second example to print "ls | mc" rather than run that command, you have to say { cat <<'EOF2' other commands here } # here document for cat starts here ls | mc EOF2