freebsd-dev/tools/regression/bin/sh/parser/heredoc3.0
Jilles Tjoelker 084d796d16 sh: Add some parser tests.
case1.0 tests POSIX requirements and one more for keywords in case
statements. The others test very special cases of command substitution.

These also work on stable/8.
2010-05-09 17:10:50 +00:00

8 lines
139 B
Plaintext

# $FreeBSD$
# This may be expected to work, but pretty much only ash derivatives allow it.
test "$(cat <<EOF)" = "hi there"
hi there
EOF