Open andrewimeson opened 6 years ago
I think the parser doesn't recognize that that in ksh, ==
allows a pattern on the RHS. In bash, the RHS of a ==
is a string/variable. If you change ==
to =~
, i think the parser will succeed, but you might have to tweak your regex to get what you want.
For bugs
shellcheck --version
or "online"): 0.4.7Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
I don't think the expression is invalid, although I do not know regex well. The code works as expected.