sh testsuite: create hush-heredoc/* and move files around

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2016-10-02 17:49:46 +02:00
parent 5d6b8729ed
commit 1b73f8471a
16 changed files with 30 additions and 0 deletions
@@ -0,0 +1,2 @@
bar
bar
+7
View File
@@ -0,0 +1,7 @@
foo () {
cat <<EOF && { echo "$1" ; }
$1
EOF
}
foo "bar"
@@ -0,0 +1,9 @@
exit EOF-f
"
echo 1
echo Hello World
moo
EOF-f
EOF-f f
EOF-f
Ok
+12
View File
@@ -0,0 +1,12 @@
f=1
cat <<- EOF-f
exit EOF-f
"
echo $f
echo `echo Hello World`
moo
EOF-f
EOF-f f
EOF-f
EOF-f
echo Ok