summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 18f1668e57..d50f06d104 100644
--- a/parse.y
+++ b/parse.y
@@ -4665,6 +4665,8 @@ list_concat(head, tail)
{
NODE *last;
+ if (nd_type(tail) != NODE_ARRAY)
+ return list_append(head, tail);
if (head->nd_next) {
last = head->nd_next->nd_end;
}