hush: fix handling of heredocs not enclosed in groups where they are "declared"
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 24 Jul 2018 11:03:03 +0000 (13:03 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 24 Jul 2018 11:03:03 +0000 (13:03 +0200)
commit474cb205554919e4d017b7aeb3722d6a4ffee41d
treea6934231956c3f3756b3d78750a83cdddf746b85
parent3675c37b9b0bb4ba565b690b95b0b9c7d0ce8123
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 <vda.linux@googlemail.com>
shell/ash_test/ash-heredoc/heredoc_after_compound1.right [new file with mode: 0644]
shell/ash_test/ash-heredoc/heredoc_after_compound1.tests [new file with mode: 0755]
shell/hush.c
shell/hush_test/hush-heredoc/heredoc_after_compound1.right [new file with mode: 0644]
shell/hush_test/hush-heredoc/heredoc_after_compound1.tests [new file with mode: 0755]
shell/hush_test/hush-heredoc/heredoc_var_expand1.right [new file with mode: 0644]
shell/hush_test/hush-heredoc/heredoc_var_expand1.tests [new file with mode: 0755]