From e155f56484507430f6aeeba971d8eb79b74aa867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20B=C3=ADro?= <89740062+adrianbiro@users.noreply.github.com> Date: Sat, 8 Apr 2023 13:00:09 +0200 Subject: [PATCH] Clean-up bash comletion "cword" is unset and even is not used in completion for other shells, so it probably shouldn't be here either. If it for some reason should be there add the directive "# shellcheck disable=SC2034" to the line above it. --- assets/completions/bat.bash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/completions/bat.bash.in b/assets/completions/bat.bash.in index 05e4326a..e4292a7e 100644 --- a/assets/completions/bat.bash.in +++ b/assets/completions/bat.bash.in @@ -32,7 +32,7 @@ __bat_escape_completions() } _bat() { - local cur prev words cword split=false + local cur prev words split=false if declare -F _init_completion >/dev/null 2>&1; then _init_completion -s || return 0 else