We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
shellcheck --version
#!/bin/sh dollar_par_count=0 case "${1}" in '$(') # shellcheck disable=SC2003 dollar_par_count="$(expr "${dollar_par_count}" + 1)" ;; esac printf 'dollar_par_count = %d\n' "${dollar_par_count}"
Expressions don't expand in single quotes, use double quotes for that.
Some way of disabling this warning. I'm writing a simple shell parser; following https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html to ensure it's complete… but I also want to use shellcheck.
The text was updated successfully, but these errors were encountered:
And you do not want to have the directive for the complete case for various reasons. If someone want to support directives per case branch....
(adding the disable before the case works fine for silencing the error in the example)
Sorry, something went wrong.
No branches or pull requests
For bugs
shellcheck --version
or "online"):For new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
Some way of disabling this warning. I'm writing a simple shell parser; following https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html to ensure it's complete… but I also want to use shellcheck.
The text was updated successfully, but these errors were encountered: