there one - alpha two - beta three - gamma hi\ there$a stuff hi\ there EO\ F hi hi tab 1 tab 2 tab 3 abc def ghi jkl mno fff is a function fff () { ed ${TMPDIR}/foo < /dev/null /^name/d w q ENDOFINPUT aa=1 } fff is a function fff () { ed ${TMPDIR}/foo < /dev/null /^name/d w q ENDOFINPUT aa=1 } foo is a function foo () { echo; cat <\END ./heredoc3.sub: line 85: warning: here-document at line 83 delimited by end-of-file (wanted `EOF') ./heredoc3.sub: line 86: syntax error: unexpected end of file heredoc1 EOF Ok:0 argv[1] = argv[2] = argv[1] = argv[2] = argv[3] = comsub here-string ./heredoc.tests: line 105: warning: here-document at line 103 delimited by end-of-file (wanted `EOF') hi there