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] = 1: OK 2: OK 3: OK 4: OK 5: OK 6: OK 7: OK 1: OK 2: OK 3: OK 4: OK 5: OK 5: OK 1: ${x#$'no\t'} 2: O${x#$'no\t'O} 3: ${x#n$'o\t'} 4: ${x#'no '} 5: ${x#$pat} 6: ${y#$'not'} 7: ${y#'not'} comsub here-string ./heredoc.tests: line 152: warning: here-document at line 150 delimited by end-of-file (wanted `EOF') hi there