xref: /freebsd/bin/sh/tests/parser/heredoc11.0 (revision 61e21613)
1
2failures=''
3
4check() {
5	if eval "[ $* ]"; then
6		:
7	else
8		echo "Failed: $*"
9		failures=x$failures
10	fi
11}
12
13check '`cat <<EOF
14foo
15EOF` = foo'
16
17check '"`cat <<EOF
18foo
19EOF`" = foo'
20
21check '`eval "cat <<EOF
22foo
23EOF"` = foo'
24
25test "x$failures" = x
26