From bb963bda62cc8b0965a921df70dfea44c4378163 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 6 Jul 2017 18:19:35 +0200 Subject: shell: syncronize ash and hush heredoc3.tests Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-heredoc/heredoc3.right | 10 +++++++++- shell/ash_test/ash-heredoc/heredoc3.tests | 21 ++++++++++++--------- shell/ash_test/ash-heredoc/heredoc9.right | 1 + shell/ash_test/ash-heredoc/heredoc9.tests | 9 +++++++++ 4 files changed, 31 insertions(+), 10 deletions(-) create mode 100644 shell/ash_test/ash-heredoc/heredoc9.right create mode 100755 shell/ash_test/ash-heredoc/heredoc9.tests diff --git a/shell/ash_test/ash-heredoc/heredoc3.right b/shell/ash_test/ash-heredoc/heredoc3.right index ce01362..6ed517f 100644 --- a/shell/ash_test/ash-heredoc/heredoc3.right +++ b/shell/ash_test/ash-heredoc/heredoc3.right @@ -1 +1,9 @@ -hello +exit EOF-f +" +echo $f +echo `echo Hello World` +moo + EOF-f +EOF-f f +EOF-f +Ok diff --git a/shell/ash_test/ash-heredoc/heredoc3.tests b/shell/ash_test/ash-heredoc/heredoc3.tests index 96c227c..938577a 100755 --- a/shell/ash_test/ash-heredoc/heredoc3.tests +++ b/shell/ash_test/ash-heredoc/heredoc3.tests @@ -1,9 +1,12 @@ -echo hello >greeting -cat </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 index 0000000..ce01362 --- /dev/null +++ b/shell/ash_test/ash-heredoc/heredoc9.right @@ -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 index 0000000..96c227c --- /dev/null +++ b/shell/ash_test/ash-heredoc/heredoc9.tests @@ -0,0 +1,9 @@ +echo hello >greeting +cat </dev/null +rm greeting -- cgit v1.1