hush: do not accept "if() { echo; }" function def
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 2 Aug 2017 17:44:05 +0000 (19:44 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 2 Aug 2017 17:46:14 +0000 (19:46 +0200)
commit39701204cfa0f261beb2dc056024634e4c3afd71
treef756205f8872ed47dd06652c63fae8c83cbdeab5
parent84ea60ed65f6ea6fd3b2170e44bbff5de410a78b
hush: do not accept "if() { echo; }" function def

function                                             old     new   delta
parse_stream                                        2634    2692     +58
msg_and_die_if_script                                  -      21     +21
syntax_error_unexpected_ch                            41      46      +5
syntax_error_at                                       14      18      +4
die_if_script                                         31      28      -3
setup_redirects                                      319     308     -11
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/2 up/down: 88/-14)             Total: 74 bytes

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