opnsense-src/bin/sh/tests/parser/heredoc15.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

9 lines
85 B
Text

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