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.09
1 files changed, 9 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..ad5a3b87af47
--- /dev/null
+++ b/bin/sh/tests/execution/subshell2.0
@@ -0,0 +1,9 @@
+
+f() {
+ x=2
+}
+(
+ x=1
+ f
+ [ "$x" = 2 ]
+)