bashlex icon indicating copy to clipboard operation
bashlex copied to clipboard

Python parser for bash

Results 39 bashlex issues
Sort by recently updated
recently updated
newest added

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...

While the project seems very interesting at first, many people discover it's not very helpful if it crashes on comments or empty lines. Given that the problems are known since...

Hey, I am trying to traverse through the bashlex.ast.node to find something specific, such as if the bash command is writing something to temp or deleting any file. Till now...

Hi, I am using bashlex, installed system wide (in a container, but that's not the issue), and when I try to import it as an unprivileged user, it shows some...

Last elif clause node is created and added to parts as a list. When parsing the next elif (bottom-up order), as the last part is a list, then it wrongly...

Hi, I was about to make a pull request for a command substitution that returned a wrong position when there are spaces in the commands in the command substitution `$(foo...

I am trying to parse the following bash script (simplified example) and print the produced AST as JSON using bashlex 0.12: ```shell function a { a; } # Comment ```...

Fix the tokenizer to handle line continuations under different scenarios

Parsing fails for if [[ -f "../build/tmp/dklm/klm_exports.h" ]]

The following bash code throws a parsing error let \ \ X=1 ParsingError: unexpected token '\n' (position 3)