koalaman / shellcheck

ShellCheck, a static analysis tool for shell scripts
https://www.shellcheck.net
GNU General Public License v3.0
36.45k stars 1.78k forks source link

not detecting malformed brace matching #2935

Open tooptoop4 opened 8 months ago

tooptoop4 commented 8 months ago

shellcheck is not detecting malformed brace matching

if [[ "${a,,}" == "z" ] || [ "${a,,}" == "z" ]]; then

but at runtime i get error of:

z.sh: line 148: syntax error in conditional expression
z.sh: line 148: syntax error near `]'