hush: support "f() (cmd)" functions
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 3 Apr 2018 12:56:52 +0000 (14:56 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 3 Apr 2018 12:56:52 +0000 (14:56 +0200)
commitfbf44854a3b7a32a0a0ff1a03f4163d25f2d62af
treeb3963985e0dbaab4ef100a3c214cdf664dcc4aa9
parent49015a60cb334ecd0b069f27833a3d50853509fa
hush: support "f() (cmd)" functions

Many other shells support this construct

function                                             old     new   delta
parse_stream                                        2950    3018     +68

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