# HG changeset patch # User František Kučera # Date 1620768215 -7200 # Node ID 5d369d33a027b42f83df6e51516a462433c662d6 # Parent 307688531414f37f0b09a1ee7b385448115d820e fix bash-completion example condition diff -r 307688531414 -r 5d369d33a027 bash-completion.sh --- a/bash-completion.sh Sat Oct 24 00:08:19 2020 +0200 +++ b/bash-completion.sh Tue May 11 23:23:35 2021 +0200 @@ -36,7 +36,7 @@ elif [[ "$w2" == "--define" ]]; then COMPREPLY=($(compgen -W "${DATA_TYPE[*]}" -- "$w0")) elif [[ "$w3" == "--define" && "x$w0" == "x" ]]; then COMPREPLY=("''") elif [[ "$w1" == "--for-each" && "x$w0" == "x" ]]; then COMPREPLY=("'(a == \"abc\") { a = \"X\"; record(); }'") - elif [[ "$w1" == "--where" && "x$w0" == "x" ]]; then COMPREPLY=("'a == \"abc\" || b = 123'") + elif [[ "$w1" == "--where" && "x$w0" == "x" ]]; then COMPREPLY=("'a == \"abc\" || b == 123'") else OPTIONS=( "--relation"