ash: add test for issue with here document
authorRon Yorston <rmy@pobox.com>
Thu, 29 Oct 2015 11:29:59 +0000 (11:29 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 22 Mar 2016 22:21:06 +0000 (18:21 -0400)
commit4c07ad913029c20d845cbb3d9ff80d6332835ae1
tree728d0189fd79ac3a6eb553e70d205bf946e8b7b2
parent856af4e3dc2406df7a2baed8058188acca9dbde6
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>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
(cherry picked from commit 9121510dc659baf6664456796c195460468c850b)
shell/ash_test/ash-heredoc/heredoc2.right [new file with mode: 0644]
shell/ash_test/ash-heredoc/heredoc2.tests [new file with mode: 0755]