idank / bashlex

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

Parsing fails for *some* list nodes inside command substitution nodes. #54

Open gmoshkin opened 4 years ago

gmoshkin commented 4 years ago

To reproduce do:

import bashlex
bashlex.parser.parse('echo $(pwd && pwd)')

Results in ParsingError: unexpected token ')' (position 10)

Parsing also fails for 'echo $(pwd || pwd)' and 'echo $(pwd & pwd)', but 'echo $(pwd ; pwd)' parses just fine.