# HG changeset patch # User František Kučera # Date 1671137039 -3600 # Node ID 9f89ecc071bf4f906712cae977037d4d19549623 # Parent 68b93b82f1cc19427c3d52ffe2792e2480e701cd bash-completion.sh: local variables diff -r 68b93b82f1cc -r 9f89ecc071bf bash-completion.sh --- a/bash-completion.sh Sat Apr 30 23:22:48 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" ) @@ -37,7 +37,7 @@ elif [[ "$w1" == "--unlink-on-close" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0")) elif [[ "$w1" == "--queue" && "x$w0" == "x" ]]; then COMPREPLY=("''") else - OPTIONS=( + local OPTIONS=( "--relation" "--unlink-on-close" "--queue"