On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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 <<EOF
}
Hello
EOF
However, note the BUGS section of rc(1): "Functions that use here
documents don't work."
-sqweek
