+tab 1
+tab 2
+tab 3
+abc
+def ghi
+jkl mno
+fff is a function
+fff ()
+{
+ ed /tmp/foo > /dev/null <<ENDOFINPUT
+/^name/d
+w
+q
+ENDOFINPUT
+
+ aa=1
+}
+fff is a function
+fff ()
+{
+ ed /tmp/foo > /dev/null <<ENDOFINPUT
+/^name/d
+w
+q
+ENDOFINPUT
+
+ aa=1
+}
+./heredoc.tests: line 94: warning: here-document at line 92 delimited by end-of-file (wanted `EOF')