hush: detect when terminating "done"/"fi" is missing
commit758b21402abc7015cfc54eb21a2e7eead1ecf6ba
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 25 Feb 2024 16:50:43 +0000 (25 17:50 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 25 Feb 2024 16:53:25 +0000 (25 17:53 +0100)
treedce318909aa47fa4abbb3d9f68fbc64b0c9cd795
parent2639f3bc72ac2f03af7ccc825429ccb2fce99a16
hush: detect when terminating "done"/"fi" is missing

function                                             old     new   delta
parse_stream                                        2271    2292     +21
.rodata                                           105408  105427     +19
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 40/0)               Total: 40 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-parsing/nodone1.right [new file with mode: 0644]
shell/ash_test/ash-parsing/nodone1.tests [new file with mode: 0755]
shell/ash_test/ash-parsing/nodone2.right [new file with mode: 0644]
shell/ash_test/ash-parsing/nodone2.tests [new file with mode: 0755]
shell/hush.c
shell/hush_test/hush-parsing/nodone1.right [new file with mode: 0644]
shell/hush_test/hush-parsing/nodone1.tests [new file with mode: 0755]
shell/hush_test/hush-parsing/nodone2.right [new file with mode: 0644]
shell/hush_test/hush-parsing/nodone2.tests [new file with mode: 0755]