http://austingroupbugs.net/view.php?id=736
An empty Shell program and a program consisting of two or more commands separated with
Desired Action
On page 2350, lines 74801-74808, change
An empty Shell program and a program consisting of two or more commands separated with
NEWLINE
tokens are valid Shell scripts. However, Shell Grammar Rules only accept exactly one single command which results in a syntax error against zero commands and two or more commands separated with NEWLINE
tokens.Desired Action
On page 2350, lines 74801-74808, change
%start complete_command %% complete_command : list separator | list ;to
%start script %% script : commands linebreak | /* empty */ ; commands : commands newline_list complete_command | complete_command ; complete_command : list separator_op | list ;