diff options
Diffstat (limited to 'shell/ash_test/ash-misc/func5.tests')
-rwxr-xr-x | shell/ash_test/ash-misc/func5.tests | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/func5.tests b/shell/ash_test/ash-misc/func5.tests new file mode 100755 index 0000000..e967208 --- /dev/null +++ b/shell/ash_test/ash-misc/func5.tests @@ -0,0 +1,13 @@ +f() { echo $1; } +f 1 + +f() ( echo $1; ) +f 2 + +f() ( echo $1 ) +f 3 + +f() for i in 1 2 3; do + echo $i +done +f |