a b c a $PS4 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 98: warning: here-document at line 96 delimited by end-of-file (wanted `EOF') ./heredoc3.sub: line 99: 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 149: warning: here-document at line 147 delimited by end-of-file (wanted `EOF') hi there