For bugs
For new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
#!/usr/bin/env bash
function rmfg_get_info()
{
local _hash_name_=${1}
local -n _hash_name_ref_="${_hash_name_}"
_hash_name_ref_["iface"]="eth0"
}
function rmfg_get_other_info()
{
local _hash_name_=${1}
local -n _hash_name_ref_="${_hash_name_}"
_hash_name_ref_["iface"]="wlan0"
}
declare -xgA hash=()
declare -xgA other_hash=()
rmfg_get_info hash
rmfg_get_other_infh other_hash
Here's what shellcheck currently says:
Line 13 SC2178: Variable was used as an array but is now assigned a string.
Here's what I wanted or expected to see:
Since this variable is a reference, it should not be checked for this problem.
For bugs
shellcheck --versionor 'online'): onlineFor 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:
Since this variable is a reference, it should not be checked for this problem.