-
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
SC1071 should not get checked if -s
is specified
#974
Comments
Just came across this again. Any feedback on this? My use case is running it for zsh scripts occasionally. I could like with a warning, but you could assume that if |
Related docs: https://github.com/koalaman/shellcheck/blame/10edba3ab82d58fb262a6ab3cc0245c0e6372259/shellcheck.1.md#L59-L63 The workaround would be for me to remove the shebang before calling shellcheck on it, but I would really like to avoid that. I think the following needs to be skipped in case the shell option is given, but I do not know how: shellcheck/src/ShellCheck/Parser.hs Lines 2964 to 2966 in 10edba3
|
It's probably of very limited use given that basically any syntax that requires As of 5005dc0,
|
Awesome, thanks! btw: is there any chance to get back support for Zsh? |
You can follow the progress (or lack thereof) on #809. |
Thanks! |
For bugs
shellcheck --version
or "online"): 0.4.6shellcheck -s sh
should use the "sh" dialect, and not look at the shebang line, possibly causingSC1071
:The text was updated successfully, but these errors were encountered: