]>
Commit | Line | Data |
---|---|---|
1 | # $FreeBSD: head/bin/sh/tests/parser/heredoc11.0 222134 2011-05-20 16:03:36Z jilles $ | |
2 | ||
3 | failures='' | |
4 | ||
5 | check() { | |
6 | if eval "[ $* ]"; then | |
7 | : | |
8 | else | |
9 | echo "Failed: $*" | |
10 | failures=x$failures | |
11 | fi | |
12 | } | |
13 | ||
14 | check '`cat <<EOF | |
15 | foo | |
16 | EOF` = foo' | |
17 | ||
18 | check '"`cat <<EOF | |
19 | foo | |
20 | EOF`" = foo' | |
21 | ||
22 | check '`eval "cat <<EOF | |
23 | foo | |
24 | EOF"` = foo' | |
25 | ||
26 | test "x$failures" = x |