Here's a snippet or screenshot that shows the problem:
#!/bin/bash
set -e
rosker() {
local name="${1:-filip}"
shift
echo "$name"
}
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
A warning that if no arguments are passed to this function that shift will crash and a recommendation to change it to something like shift || true
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:
A warning that if no arguments are passed to this function that
shiftwill crash and a recommendation to change it to something likeshift || true