summary refs log tree commit diff
path: root/bin/1sh/tests/parser/heredoc13.0
blob: 705082bb4f152fd5bb9c749d18c14b0fa0ffb6a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $FreeBSD: releng/12.1/bin/sh/tests/parser/heredoc13.0 287408 2015-09-02 19:49:55Z jilles $

failures=0

check() {
	if ! eval "[ $* ]"; then
		echo "Failed: $*"
		: $((failures += 1))
	fi
}

check '"$(cat <<""

echo yes)" = "yes"'

check '"$(cat <<""
yes

)" = "yes"'

exit $((failures != 0))