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>
This commit is contained in:
Denys Vlasenko
2018-04-03 14:56:52 +02:00
parent 49015a60cb
commit fbf44854a3
6 changed files with 61 additions and 42 deletions

View File

@@ -0,0 +1,4 @@
f() for i in 1 2 3; do
echo $i
done
f