bash-language-server
bash-language-server copied to clipboard
Parse Failure on Set Line
I have:
#!/bin/bash
set -$-ue
Which is giving a parse failure. If I use:
#!/bin/bash
set -${-}ue
There's no parse failure.
$- is the options for the current shell. I would expect set -$-ue to be valid, as bash seems just fine with it.
Thanks for reporting this issue. It seems to be a grammar issue – so related to the library used for parsing.
Can you see if this is already reported upstream and maybe create an issue over there: https://github.com/tree-sitter/tree-sitter-bash