From d73cdbf84c9c7d509baf69eb3256dcaf733f4d93 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 23 Jul 2018 15:43:57 +0200 Subject: hush: fix handling of heredocs starting with empty lines function old new delta parse_stream 2748 2759 +11 Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-heredoc/heredoc_empty3.right | 2 ++ shell/ash_test/ash-heredoc/heredoc_empty3.tests | 4 ++++ shell/hush.c | 8 ++++++++ shell/hush_test/hush-heredoc/heredoc_empty3.right | 2 ++ shell/hush_test/hush-heredoc/heredoc_empty3.tests | 4 ++++ 5 files changed, 20 insertions(+) create mode 100644 shell/ash_test/ash-heredoc/heredoc_empty3.right create mode 100755 shell/ash_test/ash-heredoc/heredoc_empty3.tests create mode 100644 shell/hush_test/hush-heredoc/heredoc_empty3.right create mode 100755 shell/hush_test/hush-heredoc/heredoc_empty3.tests diff --git a/shell/ash_test/ash-heredoc/heredoc_empty3.right b/shell/ash_test/ash-heredoc/heredoc_empty3.right new file mode 100644 index 0000000..0b54a9c --- /dev/null +++ b/shell/ash_test/ash-heredoc/heredoc_empty3.right @@ -0,0 +1,2 @@ + +Ok diff --git a/shell/ash_test/ash-heredoc/heredoc_empty3.tests b/shell/ash_test/ash-heredoc/heredoc_empty3.tests new file mode 100755 index 0000000..828c2dd --- /dev/null +++ b/shell/ash_test/ash-heredoc/heredoc_empty3.tests @@ -0,0 +1,4 @@ +cat <