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); } %%