shell: syncronize ash and hush heredoc3.tests
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 6 Jul 2017 16:19:35 +0000 (18:19 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 6 Jul 2017 16:19:35 +0000 (18:19 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-heredoc/heredoc3.right
shell/ash_test/ash-heredoc/heredoc3.tests
shell/ash_test/ash-heredoc/heredoc9.right [new file with mode: 0644]
shell/ash_test/ash-heredoc/heredoc9.tests [new file with mode: 0755]

index ce013625030ba8dba906f756967f9e9ca394464a..6ed517f742e843c99df1d0f4f5386b42c14954c3 100644 (file)
@@ -1 +1,9 @@
-hello
+exit EOF-f
+"
+echo $f
+echo `echo Hello World`
+moo     
+ EOF-f
+EOF-f   f
+EOF-f 
+Ok
index 96c227cc142579398cf4166890abb65698262ab7..938577a8908d0b9ef1c7ad7c85fad5543555454c 100755 (executable)
@@ -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
diff --git a/shell/ash_test/ash-heredoc/heredoc9.right b/shell/ash_test/ash-heredoc/heredoc9.right
new file mode 100644 (file)
index 0000000..ce01362
--- /dev/null
@@ -0,0 +1 @@
+hello
diff --git a/shell/ash_test/ash-heredoc/heredoc9.tests b/shell/ash_test/ash-heredoc/heredoc9.tests
new file mode 100755 (executable)
index 0000000..96c227c
--- /dev/null
@@ -0,0 +1,9 @@
+echo hello >greeting
+cat <<EOF &&
+$(cat greeting)
+EOF
+{
+       echo $?
+       cat greeting
+} >/dev/null
+rm greeting