← Commit list

12bcc76e9

Mike Frysinger
Mike Frysinger
2009-05-21
FAILED Duration: 29s

Subject

hush_test: test for subshell function syntax

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush_test/hush-misc/func5.right+3 -0
@@ -0,0 +1,3 @@
+1
+2
+3
shell/hush_test/hush-misc/func5.tests+9 -0
@@ -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