-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test expression with operator as a variable not parsed. #51
Comments
Fix broken headings in Markdown files
@koalaman i have possible fix for simple cases of this: |
I think the best thing for this case would be to keep parsing the same, but to allow continuing on failure. That way you can do whichever dynamic magic you want, and if ShellCheck doesn't get it, you can just disable it. I don't think that fixing the case of |
It seems that using |
SC1087: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). SC1073: Couldn't parse this test expression. Fix to allow more checks See: koalaman/shellcheck#51
Hello
It looks like this expression is not parsed correctly.
[ -"${option_type:0:1}" "$value" ]
^-- Couldn't parse this test expression.
^-- Unexpected """. Fix any mentioned problems and try again.
For the record, the line context is available at https://github.com/Anvil/bash-argsparse/blob/master/argsparse.sh#L614
Thank you.
The text was updated successfully, but these errors were encountered: