summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc/func5.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-misc/func5.tests')
-rwxr-xr-xshell/hush_test/hush-misc/func5.tests9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/func5.tests b/shell/hush_test/hush-misc/func5.tests
new file mode 100755
index 0000000..9c5f9fa
--- /dev/null
+++ b/shell/hush_test/hush-misc/func5.tests
@@ -0,0 +1,9 @@
+f() { echo $1; }
+f 1
+
+# hush fails on this syntax, but i've never seen anyone use it ...
+#f() ( echo $1; )
+f 2
+
+#f() ( echo $1 )
+f 3