From f2b7c790dd66505279c836c529e8d79a3e04824a Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Sat, 1 Apr 2017 19:15:19 -0400 Subject: [PATCH] Fix shellcheck Before this change: In - line 204: declare -F $next_command >/dev/null && $next_command ^-- SC2086: Double quote to prevent globbing and word splitting. --- FAIL: TestBashCompletions (0.34s) bash_completions_test.go:138: shellcheck failed: exit status 1 --- bash_completions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completions.go b/bash_completions.go index 8820ba8f..59e90f9d 100644 --- a/bash_completions.go +++ b/bash_completions.go @@ -225,7 +225,7 @@ __handle_command() fi c=$((c+1)) __debug "${FUNCNAME[0]}: looking for ${next_command}" - declare -F $next_command >/dev/null && $next_command + declare -F "$next_command" >/dev/null && $next_command } __handle_word()