opnsense-src/bin/sh/tests/parser/heredoc14.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
80 B
Text

#
read x <<EOF; for i in "$x"
value
EOF
do
x=$x.$i
done
[ "$x" = value.value ]