bash-parser
bash-parser copied to clipboard
Cannot parse statements with nested subshells
Scripts that have expressions with multiple subshells fail with
SyntaxError: Unclosed $(
Examples:
scriptpath="$(dirname "$(dirname "$(dirname "$0")")")"
LIB=$(cd $(dirname $(dirname $0)); pwd -P )
Hi @bvberkum I saw you did some work on your fork? Would you mind open 2 PR: one with the coverage fixes and linting fixes and another with the failing tests for this issue? We can further discuss & fix the multiple subshells issue there.
Thank you!
Thanks for reminding me, its easy to forget things once committed. See PR #53 for the linting and coverall change. I have some more changes stashed touching these and another issue, I'll sort out the tests and branch those per issue.