]>
Commit | Line | Data |
---|---|---|
71aad674 A |
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)) |