xref: /freebsd/bin/sh/tests/parser/heredoc13.0 (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1
2failures=0
3
4check() {
5	if ! eval "[ $* ]"; then
6		echo "Failed: $*"
7		: $((failures += 1))
8	fi
9}
10
11check '"$(cat <<""
12
13echo yes)" = "yes"'
14
15check '"$(cat <<""
16yes
17
18)" = "yes"'
19
20exit $((failures != 0))
21