Task #118019 - added.err
back to task #118019download
Error: SHELLCHECK_WARNING (CWE-140):
/usr/share/bash-completion/completions/authselect.bash:199:24: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
# 197| if [[ "$possibleopts" != "" ]]; then
# 198| if [[ "${COMP_WORDS[$COMP_CWORD]}" = "=" ]]; then
# 199|-> COMPREPLY=($(compgen -W "$possibleopts"))
# 200| else
# 201| COMPREPLY=($(compgen -W "$possibleopts" -- "${COMP_WORDS[$COMP_CWORD]}"))
Error: SHELLCHECK_WARNING (CWE-140):
/usr/share/bash-completion/completions/authselect.bash:201:24: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
# 199| COMPREPLY=($(compgen -W "$possibleopts"))
# 200| else
# 201|-> COMPREPLY=($(compgen -W "$possibleopts" -- "${COMP_WORDS[$COMP_CWORD]}"))
# 202| fi
# 203| else
Error: SHELLCHECK_WARNING (CWE-569):
/usr/share/bash-completion/completions/authselect.bash:206:26: warning[SC2124]: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
# 204| command="$(get_command)"
# 205| if [[ "$command" = "" ]]; then
# 206|-> possibleopts="$(get_global_options) ${COMMANDS[@]}"
# 207| else
# 208| possibleopts="$(get_global_options) $(get_command_params) $(get_command_keywords) $(get_command_options)"
Error: SHELLCHECK_WARNING (CWE-140):
/usr/share/bash-completion/completions/authselect.bash:210:20: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
# 208| possibleopts="$(get_global_options) $(get_command_params) $(get_command_keywords) $(get_command_options)"
# 209| fi
# 210|-> COMPREPLY=($(compgen -W "$possibleopts" -- "${COMP_WORDS[$COMP_CWORD]}"))
# 211| fi
# 212| }