summaryrefslogtreecommitdiffstats
path: root/bin/sh/tests/parser/heredoc11.0
blob: 5839e46b36ce6591226855f4636e3057c4e239e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $FreeBSD$

failures=''

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

check '`cat <<EOF
foo
EOF` = foo'

check '"`cat <<EOF
foo
EOF`" = foo'

check '`eval "cat <<EOF
foo
EOF"` = foo'

test "x$failures" = x
OpenPOWER on IntegriCloud