In this case, Bats sets $status, $output, and $lines, but ShellCheck doesn't statically know that. Therefore, we ignore SC2154 when those variables are first introduced in ./tests/unit/test_helper.bash https://github.com/koalaman/shellcheck/wiki/SC2154