In the first example I end input with c RET
In the second example I end input with ^D
$ cat<<c
> 1
> 2
> c
1
2
$ cat<<c
> 1
> 2
> 1
2
In the second example it would seem prudent for bash 2.05.0(1) to give
an newline before making output, for clarity's sake. Well, I'm not
sure what's going on but it looks ugly, and I remember EOF is also a
valid terminator of "here documents", I think.
--
http://www.geocities.com/jidanni/ Tel+886-4-25854780