$ cat test
alias 'foo=cat <<EOF
hello'
foo
world
EOF
$ sh test
world
test: line 5: hello: command not found

My reading of the upcoming POSIX revision 
(https://www.austingroupbugs.net/view.php?id=953#c4214)
is that they should be treated just like newline tokens coming from the source.

Reply via email to