sh: Split off a more dubious test from parser/heredoc2.0.
This commit is contained in:
parent
54be88c948
commit
2070b57f64
@ -16,11 +16,6 @@ ${s}
|
||||
EOF
|
||||
)" = "ast*que?non"'
|
||||
|
||||
check '"$(cat <<EOF
|
||||
${s+"x"}
|
||||
EOF
|
||||
)" = ${dq}x${dq}'
|
||||
|
||||
check '"$(cat <<EOF
|
||||
${s+'$sq'x'$sq'}
|
||||
EOF
|
||||
|
20
tools/regression/bin/sh/parser/heredoc8.0
Normal file
20
tools/regression/bin/sh/parser/heredoc8.0
Normal file
@ -0,0 +1,20 @@
|
||||
# $FreeBSD$
|
||||
|
||||
failures=0
|
||||
|
||||
check() {
|
||||
if ! eval "[ $* ]"; then
|
||||
echo "Failed: $*"
|
||||
: $((failures += 1))
|
||||
fi
|
||||
}
|
||||
|
||||
s='ast*que?non' sq=\' dq=\"
|
||||
|
||||
# This is possibly useful but differs from other shells.
|
||||
check '"$(cat <<EOF
|
||||
${s+"x"}
|
||||
EOF
|
||||
)" = ${dq}x${dq}'
|
||||
|
||||
exit $((failures != 0))
|
Loading…
Reference in New Issue
Block a user