summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-heredoc/heredoc2.tests
blob: 6d9ccb6cc144bdfc85328cf1bde789dce617557d (plain)
1
2
3
4
5
6
7
foo () {
cat <<EOF && { echo "$1" ; }
$1
EOF
}

foo "bar"