summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-misc/func_compound1.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2018-04-03 14:56:52 +0200
committerDenys Vlasenko2018-04-03 14:56:52 +0200
commitfbf44854a3b7a32a0a0ff1a03f4163d25f2d62af (patch)
treeb3963985e0dbaab4ef100a3c214cdf664dcc4aa9 /shell/ash_test/ash-misc/func_compound1.tests
parent49015a60cb334ecd0b069f27833a3d50853509fa (diff)
downloadbusybox-fbf44854a3b7a32a0a0ff1a03f4163d25f2d62af.zip
busybox-fbf44854a3b7a32a0a0ff1a03f4163d25f2d62af.tar.gz
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/ash_test/ash-misc/func_compound1.tests')
-rwxr-xr-xshell/ash_test/ash-misc/func_compound1.tests4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/func_compound1.tests b/shell/ash_test/ash-misc/func_compound1.tests
new file mode 100755
index 0000000..20c8bf1
--- /dev/null
+++ b/shell/ash_test/ash-misc/func_compound1.tests
@@ -0,0 +1,4 @@
+f() for i in 1 2 3; do
+ echo $i
+done
+f