Open gmoshkin opened 4 years ago
To reproduce do:
import bashlex bashlex.parser.parse('echo $(pwd && pwd)')
Results in ParsingError: unexpected token ')' (position 10)
ParsingError: unexpected token ')' (position 10)
Parsing also fails for 'echo $(pwd || pwd)' and 'echo $(pwd & pwd)', but 'echo $(pwd ; pwd)' parses just fine.
'echo $(pwd || pwd)'
'echo $(pwd & pwd)'
'echo $(pwd ; pwd)'
To reproduce do:
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.