# HG changeset patch # User František Kučera # Date 1671137039 -3600 # Node ID 04550f27162304a11dc30c0b2db6b3384f5e64b3 # Parent 12e975f807edd655828ee5a7ae45629f1ed996e4 bash-completion.sh: local variables diff -r 12e975f807ed -r 04550f271623 bash-completion.sh --- 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"