bash-language-server icon indicating copy to clipboard operation
bash-language-server copied to clipboard

Parse Failure on Set Line

Open kins-dev opened this issue 6 years ago • 1 comments

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.

kins-dev avatar Jan 28 '20 19:01 kins-dev

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

skovhus avatar Jan 29 '20 09:01 skovhus