hush/shell/ash_test/ash-heredoc/heredoc2.tests
Ron Yorston 9121510dc6 ash: add test for issue with here document
This used to work but doesn't now:

foo () {
cat <<EOF && { echo "$1" ; }
$1
EOF
}

foo "bar"

Reported-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-10-29 19:12:03 +01:00

8 lines
58 B
Plaintext
Executable File

foo () {
cat <<EOF && { echo "$1" ; }
$1
EOF
}
foo "bar"