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>
This commit is contained in:
Ron Yorston authored and Denys Vlasenko committed 2015-10-29 19:12:03 +01:00
1 parent 4c8576fea1
commit 9121510dc6
2 files changed
+9

No files matched your search

@@ -0,0 +1,2 @@
bar
bar
+7
View File
@@ -0,0 +1,7 @@
foo () {
cat <<EOF && { echo "$1" ; }
$1
EOF
}
foo "bar"