From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <140e7ec30710080046w452e1fabg195870ac3e5cc120@mail.gmail.com> Date: Mon, 8 Oct 2007 15:46:36 +0800 From: sqweek To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] here document In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <93819b3e3ab73e3a2f639c1334ceba70@quintile.net> Topicbox-Message-UUID: cc329022-ead2-11e9-9d60-3106f5b1d025 On 10/8/07, arisawa@ar.aichi-u.ac.jp wrote: > It seems "here document" in rc function is not working. > Try: > > fn foo { > cat <<'EOD' > World > EOD > } > > echo Hello > foo Your syntax is wrong. In rc the here document comes after the closing brace, as in: for(i in 1 2 3) { cat <