idank / bashlex

Python parser for bash
GNU General Public License v3.0
558 stars 94 forks source link

If statements only have support for conditional commands (COND_CMD) #73

Closed BlankCanvasStudio closed 2 years ago

BlankCanvasStudio commented 2 years ago

Parsing an if statement will crash if you tried anything along the lines of [[ 0 -eq 0 ]]. This bug comes because state 41 has no transition to states for parsing words in the test