Commands cramming two statements onto one line are now flagged as too complex to auto-approve.
What's wrong with this entry?
Command analysis now treats a command as too complex when one statement directly follows another on the same line, since bash reads that as a single command.
- Two node-type sets back the check: a statement-like set including
redirected_statementandERROR, and a smaller set ofnegated_command,if_statement,while_statementandfor_statement - A new walk over the parse tree applies the rule and classifies the command accordingly
statement directly follows another statement on the same line
Strings lifted out of the shipped bundle, so the claim above can be checked against them.