diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-03 14:56:52 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-03 14:56:52 +0200 |
commit | fbf44854a3b7a32a0a0ff1a03f4163d25f2d62af (patch) | |
tree | b3963985e0dbaab4ef100a3c214cdf664dcc4aa9 /shell/hush_test | |
parent | 49015a60cb334ecd0b069f27833a3d50853509fa (diff) | |
download | busybox-w32-fbf44854a3b7a32a0a0ff1a03f4163d25f2d62af.tar.gz busybox-w32-fbf44854a3b7a32a0a0ff1a03f4163d25f2d62af.tar.bz2 busybox-w32-fbf44854a3b7a32a0a0ff1a03f4163d25f2d62af.zip |
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>
Diffstat (limited to 'shell/hush_test')
-rwxr-xr-x | shell/hush_test/hush-misc/func5.tests | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/shell/hush_test/hush-misc/func5.tests b/shell/hush_test/hush-misc/func5.tests index 9c5f9fa48..5c33560bc 100755 --- a/shell/hush_test/hush-misc/func5.tests +++ b/shell/hush_test/hush-misc/func5.tests | |||
@@ -1,9 +1,8 @@ | |||
1 | f() { echo $1; } | 1 | f() { echo $1; } |
2 | f 1 | 2 | f 1 |
3 | 3 | ||
4 | # hush fails on this syntax, but i've never seen anyone use it ... | 4 | f() ( echo $1; ) |
5 | #f() ( echo $1; ) | ||
6 | f 2 | 5 | f 2 |
7 | 6 | ||
8 | #f() ( echo $1 ) | 7 | f() ( echo $1 ) |
9 | f 3 | 8 | f 3 |