diff options
Diffstat (limited to 'shell/hush_test/hush-heredoc')
4 files changed, 20 insertions, 0 deletions
diff --git a/shell/hush_test/hush-heredoc/heredoc_after_compound1.right b/shell/hush_test/hush-heredoc/heredoc_after_compound1.right new file mode 100644 index 0000000..9052f7d --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc_after_compound1.right @@ -0,0 +1,2 @@ +Ok1 +Ok2 diff --git a/shell/hush_test/hush-heredoc/heredoc_after_compound1.tests b/shell/hush_test/hush-heredoc/heredoc_after_compound1.tests new file mode 100755 index 0000000..e7cfb5b --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc_after_compound1.tests @@ -0,0 +1,3 @@ +{ cat <<EOF; }; echo Ok2 +Ok1 +EOF diff --git a/shell/hush_test/hush-heredoc/heredoc_var_expand1.right b/shell/hush_test/hush-heredoc/heredoc_var_expand1.right new file mode 100644 index 0000000..eb22183 --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc_var_expand1.right @@ -0,0 +1,4 @@ + +Ok1:0 + +Ok2:0 diff --git a/shell/hush_test/hush-heredoc/heredoc_var_expand1.tests b/shell/hush_test/hush-heredoc/heredoc_var_expand1.tests new file mode 100755 index 0000000..3b00bab --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc_var_expand1.tests @@ -0,0 +1,11 @@ +x='*' + +cat <<- EOF + ${x#'*'} +EOF +echo Ok1:$? + +cat <<EOF +${x#'*'} +EOF +echo Ok2:$? |