From 091a7cde3deaeb7650e6972f5dda8c943cd1c120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 25 Apr 2020 10:41:32 +0300 Subject: [PATCH] wget: address shellcheck SC2116 --- .shellcheckrc | 1 - completions/wget | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.shellcheckrc b/.shellcheckrc index 68a606845f4..90c79a835ae 100644 --- a/.shellcheckrc +++ b/.shellcheckrc @@ -14,7 +14,6 @@ disable=SC2015 disable=SC2016 disable=SC2035 disable=SC2086 -disable=SC2116 disable=SC2155 disable=SC2162 disable=SC2231 diff --git a/completions/wget b/completions/wget index 539add037e7..8ac0a138378 100644 --- a/completions/wget +++ b/completions/wget @@ -49,7 +49,7 @@ _wget() -- "$lastopt") ) # +o nospace when no more valid option is possible (= append a space) - local opt_as_arr=( $(echo ${COMPREPLY[0]//,/ }) ) + local opt_as_arr=( ${COMPREPLY[0]//,/ } ) (( ${#opt_as_arr[@]} < 4 )) && compopt -o nospace return ;;