shell: syncronize ash and hush heredoc3.tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2017-07-06 18:19:35 +02:00
parent 959cb67428
commit bb963bda62
4 changed files with 31 additions and 10 deletions

View File

@ -1 +1,9 @@
hello
exit EOF-f
"
echo $f
echo `echo Hello World`
moo
EOF-f
EOF-f f
EOF-f
Ok

View File

@ -1,9 +1,12 @@
echo hello >greeting
cat <<EOF &&
$(cat greeting)
EOF
{
echo $?
cat greeting
} >/dev/null
rm greeting
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

View File

@ -0,0 +1 @@
hello

View File

@ -0,0 +1,9 @@
echo hello >greeting
cat <<EOF &&
$(cat greeting)
EOF
{
echo $?
cat greeting
} >/dev/null
rm greeting