summaryrefslogtreecommitdiffstats
path: root/cmd-parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-parse.y')
-rw-r--r--cmd-parse.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd-parse.y b/cmd-parse.y
index 6ec2eca3..0a0b1993 100644
--- a/cmd-parse.y
+++ b/cmd-parse.y
@@ -535,9 +535,11 @@ argument_statements : statement '}'
{
$$ = $1;
}
- | statements '}'
+ | statements statement '}'
{
$$ = $1;
+ TAILQ_CONCAT($$, $2, entry);
+ free($2);
}
%%