bash-completion.sh
branchv_0
changeset 8 04550f271623
parent 3 b71fc3b5e56b
--- a/bash-completion.sh	Sat Apr 30 23:19:08 2022 +0200
+++ b/bash-completion.sh	Thu Dec 15 21:43:59 2022 +0100
@@ -22,13 +22,13 @@
 	w2=${COMP_WORDS[COMP_CWORD-2]}
 	w3=${COMP_WORDS[COMP_CWORD-3]}
 
-	DATA_TYPE=(
+	local DATA_TYPE=(
 		"string"
 		"integer"
 		"boolean"
 	)
 
-	BOOLEAN_VALUES=(
+	local BOOLEAN_VALUES=(
 		"true"
 		"false"
 	)
@@ -38,7 +38,7 @@
 	elif [[ "$w1" == "--queue"                         && "x$w0" == "x" ]];    then COMPREPLY=("''")
 	elif [[ "$w1" == "--message-count"                 && "x$w0" == "x" ]];    then COMPREPLY=("1")
 	else
-		OPTIONS=(
+		local OPTIONS=(
 			"--relation"
 			"--unlink-on-close"
 			"--queue"