opengrep-rules' bash/lang/correctness/unquoted-variable-expansion-in-command reports $1 in printf "%$(($1 - 1))s" (cmc/simcity scripts/test-preflight.sh:39). Arithmetic is never word-split, and this one is inside double quotes. Check these hits against the script, as unquoted-attribute-var hits are checked against the template.
closed by cmc in commit e21492fd1a: codescan: check unquoted-expansion hits against the script
2026-11-20 19:52 UTC