bashlex
bashlex copied to clipboard
Python parser for bash
It looks like, that bashlex has problems with parsing of case statements. Please try read following into parser.parse: case "$1" in start) start ;; stop) stop ;; *) echo $"Usage:...
It would be good for array assignments to flagged as unimplemented when the new _proceedonerror_ flag is enabled. This way, a complete AST can still be generated. Currently, array assignment...
To facilitate broader coverage of the analyzer, it would be good for the parser to add "unimplemented nodes" to the AST rather than raising an error. This can be done...
Attempting to parse a script with array declaration fails upon encountering the opening set mark (ie: **(**). The following `bashlex`information was provided by `pip`: ```bash $ pip show bashlex Name:...
While following seems to parse just fine: ```bash foo && bar ``` However when I try to parse this: ```bash foobar=$(foo && bar) ``` I get the following error: ```bash...
Dear experts, How to use bashlex to separate a bash script file into groups of multi-line commands to execute each group with paramiko.exec_command function? For example, I want to separate...
I tried the following script: ```bash if [[ -z "$var" ]]; then echo "-z var == true" else echo "-z var == false" fi ``` And it gave me an...
While parsing this part of a huge script ([winetricks](https://github.com/Winetricks/winetricks/blob/master/src/winetricks)), I encountered an issue. https://github.com/Winetricks/winetricks/blob/72b934e1e10c041ec6986f5f2fb4f143d8f6b941/src/winetricks#L16847-L16852 ```bash cat > "${W_TMP}"/config.xml