From 474cb205554919e4d017b7aeb3722d6a4ffee41d Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 24 Jul 2018 13:03:03 +0200 Subject: hush: fix handling of heredocs not enclosed in groups where they are "declared" function old new delta fetch_heredocs - 479 +479 parse_and_run_stream 146 148 +2 parse_stream 2787 2296 -491 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 481/-491) Total: -10 bytes Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-heredoc/heredoc_after_compound1.right | 2 ++ shell/ash_test/ash-heredoc/heredoc_after_compound1.tests | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 shell/ash_test/ash-heredoc/heredoc_after_compound1.right create mode 100755 shell/ash_test/ash-heredoc/heredoc_after_compound1.tests (limited to 'shell/ash_test') diff --git a/shell/ash_test/ash-heredoc/heredoc_after_compound1.right b/shell/ash_test/ash-heredoc/heredoc_after_compound1.right new file mode 100644 index 000000000..9052f7d1f --- /dev/null +++ b/shell/ash_test/ash-heredoc/heredoc_after_compound1.right @@ -0,0 +1,2 @@ +Ok1 +Ok2 diff --git a/shell/ash_test/ash-heredoc/heredoc_after_compound1.tests b/shell/ash_test/ash-heredoc/heredoc_after_compound1.tests new file mode 100755 index 000000000..e7cfb5be1 --- /dev/null +++ b/shell/ash_test/ash-heredoc/heredoc_after_compound1.tests @@ -0,0 +1,3 @@ +{ cat <