bash-parser icon indicating copy to clipboard operation
bash-parser copied to clipboard

Cannot parse statements with nested subshells

Open dotmpe opened this issue 7 years ago • 2 comments

Scripts that have expressions with multiple subshells fail with

SyntaxError: Unclosed $(

Examples:

scriptpath="$(dirname "$(dirname "$(dirname "$0")")")"
LIB=$(cd $(dirname $(dirname $0)); pwd -P )

dotmpe avatar Apr 21 '18 16:04 dotmpe

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!

parro-it avatar Apr 24 '18 07:04 parro-it

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.

dotmpe avatar Apr 27 '18 00:04 dotmpe