projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Add regression tests for /bin/sh.
[dragonfly.git]
/
tools
/
regression
/
bin
/
sh
/
parser
/
heredoc8.0
1
# $FreeBSD: src/tools/regression/bin/sh/parser/heredoc8.0,v 1.1 2010/08/16 21:14:49 jilles Exp $
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))