]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/parser/heredoc8.0
598358a0494b3032c5c555669ef0038d6115fec8
[apple/shell_cmds.git] / sh / tests / parser / heredoc8.0
1 # $FreeBSD$
2
3 failures=0
4
5 check() {
6 if ! eval "[ $* ]"; then
7 echo "Failed: $*"
8 : $((failures += 1))
9 fi
10 }
11
12 s='ast*que?non' sq=\' dq=\"
13
14 # This is possibly useful but differs from other shells.
15 check '"$(cat <<EOF
16 ${s+"x"}
17 EOF
18 )" = ${dq}x${dq}'
19
20 exit $((failures != 0))