You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a snippet or screenshot that shows the problem:
In foo.rc line 86:
if [ -n"${FOO_OBJ_PATH}"-a!-d"${FOO_OBJ_PATH}" ];then
^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Here's what shellcheck currently says:
shellcheck threw a SC2166, but the summary didn't list the wiki URL for reference and explanation:
0.10.0 does show it. Maybe we need a more complete example? You have errors reported that does not show in the current example. Is it possible to have a minimal case?
For bugs
shellcheck --version
or "online"): 0.9.0For new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
shellcheck threw a SC2166, but the summary didn't list the wiki URL for reference and explanation:
For more information:
https://www.shellcheck.net/wiki/SC2148 -- Tips depend on target shell and y...
https://www.shellcheck.net/wiki/SC1090 -- ShellCheck can't follow non-const...
https://www.shellcheck.net/wiki/SC2010 -- Don't use ls | grep. Use a glob o...
Here's what I wanted or expected to see:
https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
The text was updated successfully, but these errors were encountered: