]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - tools/regression/bin/sh/parser/heredoc11.0
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / tools / regression / bin / sh / parser / heredoc11.0
1 # $FreeBSD$
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