busybox/shell/ash_test/ash-misc/func6.tests
Denys Vlasenko b4cedd4c9a hush: fix several syntax corner cases with function definitions
function                                             old     new   delta
parse_stream                                        3063    3075     +12
done_word                                            777     784      +7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 19/0)               Total: 19 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-08-18 14:52:46 +02:00

8 lines
71 B
Text
Executable file

{ f() { echo $1; } }
f 1
{ f() ( echo $1; )}
f 2
{ f()(echo $1)}
f 3