summaryrefslogtreecommitdiffstats
path: root/runtime/syntax/testdir/input/sh_11.sh
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax/testdir/input/sh_11.sh')
-rwxr-xr-xruntime/syntax/testdir/input/sh_11.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/syntax/testdir/input/sh_11.sh b/runtime/syntax/testdir/input/sh_11.sh
new file mode 100755
index 0000000000..6e192fc3c4
--- /dev/null
+++ b/runtime/syntax/testdir/input/sh_11.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# Issue #962
+
+arr=(
+ 1 2 3 4
+) # ok
+
+if true; then
+
+ arr=(1 2 3 4) # ok
+
+ arr=( 1 2 3 4 ) # ok
+
+ arr=(
+ 1 2 3 4
+ ) # paren error!
+
+fi
+