sh testsuite: create hush-heredoc/* and move files around
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
5d6b8729ed
commit
1b73f8471a
2
shell/hush_test/hush-heredoc/heredoc2.right
Normal file
2
shell/hush_test/hush-heredoc/heredoc2.right
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
bar
|
||||||
|
bar
|
7
shell/hush_test/hush-heredoc/heredoc2.tests
Executable file
7
shell/hush_test/hush-heredoc/heredoc2.tests
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
foo () {
|
||||||
|
cat <<EOF && { echo "$1" ; }
|
||||||
|
$1
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
foo "bar"
|
9
shell/hush_test/hush-heredoc/heredoc5.right
Normal file
9
shell/hush_test/hush-heredoc/heredoc5.right
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
exit EOF-f
|
||||||
|
"
|
||||||
|
echo 1
|
||||||
|
echo Hello World
|
||||||
|
moo
|
||||||
|
EOF-f
|
||||||
|
EOF-f f
|
||||||
|
EOF-f
|
||||||
|
Ok
|
12
shell/hush_test/hush-heredoc/heredoc5.tests
Executable file
12
shell/hush_test/hush-heredoc/heredoc5.tests
Executable 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
|
Loading…
Reference in New Issue
Block a user