aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/tests/execution/subshell2.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/tests/execution/subshell2.0')
-rw-r--r--bin/sh/tests/execution/subshell2.010
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/sh/tests/execution/subshell2.0 b/bin/sh/tests/execution/subshell2.0
new file mode 100644
index 000000000000..32164495c9ca
--- /dev/null
+++ b/bin/sh/tests/execution/subshell2.0
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+f() {
+ x=2
+}
+(
+ x=1
+ f
+ [ "$x" = 2 ]
+)