How do I use GNU Parallel to run shellcheck on all *.sh with a wrapper function?
This attempt has the correct target files, but Parallel seems to struggle with the subshell.
lint:sh() {
local output
targets=$(find . -name '*.sh' -exec echo {} \;)
output=$(parallel --no-notice shellcheck ::: "$targets")
results $? "$output"
}