opnsense-src/bin/sh/tests/parser/heredoc16.0
Jilles Tjoelker 72f750dc7c sh: Fix heredoc at certain places in case and for
After an unescaped newline, there may be a here-document. Some places in
case and for did not check for one.

Reviewed by:	bdrewery
Differential Revision:	https://reviews.freebsd.org/D32628
2021-10-27 21:05:19 +02:00

8 lines
90 B
Text

#
read x <<EOF; case $x
value
EOF
in
value) x=$x.extended
esac
[ "$x" = value.extended ]