Here's a snippet or screenshot that shows the problem:
#!/bin/bash
f() {
local x=
}
echo "$x"
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
In - line 5:
echo "$x"
^-- SC2154 (warning): x is referenced but not assigned.
For more information:
https://www.shellcheck.net/wiki/SC2154 -- x is referenced but not assigned.
For bugs
For new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Here's what I wanted or expected to see: