busybox/shell/ash_test/ash-misc/func_compound1.tests
Denys Vlasenko fbf44854a3 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>
2018-04-03 14:56:52 +02:00

5 lines
39 B
Plaintext
Executable File

f() for i in 1 2 3; do
echo $i
done
f