summaryrefslogtreecommitdiff
path: root/t/chainlint/nested-subshell.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/nested-subshell.test')
-rw-r--r--t/chainlint/nested-subshell.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/chainlint/nested-subshell.test b/t/chainlint/nested-subshell.test
new file mode 100644
index 0000000000..c31da34b73
--- /dev/null
+++ b/t/chainlint/nested-subshell.test
@@ -0,0 +1,15 @@
+test_expect_success 'nested-subshell' '
+(
+ cd foo &&
+ (
+ echo a &&
+ echo b
+ ) >file &&
+
+ cd foo &&
+ (
+ echo a
+ echo b
+ ) >file
+)
+'