For bugs with existing features
Here's a snippet or screenshot that shows the problem:
#!/bin/bash
function foo1() {
local fn=${1}
echo "foo1"
${fn}
}
function foo2() {
echo "foo2"
return 0
}
foo1 foo2
exit 0
Here's what shellcheck currently says:
Line 9:
function foo2() {
^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly).
Here's what I wanted or expected to see:
No issue