diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 18:33:23 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 18:33:23 +0000 |
commit | 1d5cace9db9aef76f26b2d7ba54bbb76443b00b2 (patch) | |
tree | 314a15dd1aa103da13bdc83ba1d2105a290bc5ba /tests/heredoc.right | |
parent | Initial commit. (diff) | |
download | bash-1d5cace9db9aef76f26b2d7ba54bbb76443b00b2.tar.xz bash-1d5cace9db9aef76f26b2d7ba54bbb76443b00b2.zip |
Adding upstream version 5.0.upstream/5.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/heredoc.right | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/tests/heredoc.right b/tests/heredoc.right new file mode 100644 index 0000000..f6541dc --- /dev/null +++ b/tests/heredoc.right @@ -0,0 +1,98 @@ +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 <<ENDOFINPUT > /dev/null +/^name/d +w +q +ENDOFINPUT + + aa=1 +} +fff is a function +fff () +{ + ed ${TMPDIR}/foo <<ENDOFINPUT > /dev/null +/^name/d +w +q +ENDOFINPUT + + aa=1 +} +foo is a function +foo () +{ + echo; + cat <<END +bar +END + + cat <<EOF +qux +EOF + +} + +bar +qux + +bar +qux +abc def geh +./heredoc3.sub: line 10: warning: here-document at line 8 delimited by end-of-file (wanted `EOF') += here is the text = +./heredoc3.sub: line 16: warning: here-document at line 14 delimited by end-of-file (wanted `EOF') +this paren ) is not a problem +./heredoc3.sub: line 22: warning: here-document at line 20 delimited by end-of-file (wanted `EOF') +these balanced parens ( ) are not a problem +./heredoc3.sub: line 28: warning: here-document at line 26 delimited by end-of-file (wanted `EOF') +quoted balanced parens \( ) are not a problem either +more text in a subshell +some more text in a different subshell +end +hello +hello +ENDEND +end ENDEND +hello +end hello +end x*x +helloEND +end helloEND +hello +\END +end hello<NL>\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] = <onetwo> +argv[2] = <threefour> +argv[1] = <two> +argv[2] = <threefi> +argv[3] = <ve> +comsub here-string +./heredoc.tests: line 105: warning: here-document at line 103 delimited by end-of-file (wanted `EOF') +hi +there |