ash: add test for issue with here document
authorRon Yorston <rmy@pobox.com>
Thu, 29 Oct 2015 11:29:59 +0000 (11:29 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 29 Oct 2015 18:12:03 +0000 (19:12 +0100)
commit9121510dc659baf6664456796c195460468c850b
tree9d810900b01bcb84ffedede4aa29a18963d2f209
parent4c8576fea18552d93d43c367638bacc54c26f2b7
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>
shell/ash_test/ash-heredoc/heredoc2.right [new file with mode: 0644]
shell/ash_test/ash-heredoc/heredoc2.tests [new file with mode: 0755]