diff options
author | Clint Adams <clint@users.sourceforge.net> | 2000-06-18 14:16:24 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2000-06-18 14:16:24 +0000 |
commit | bfaf5478a355ecbbad0c46e6cb0f8f1555e8e3dc (patch) | |
tree | ac4e436a3e9dfb56de829d22499e93359cf1aff0 /Completion | |
parent | 1add53c578073860f2573fcaaa6fd3f332035238 (diff) | |
download | zsh-bfaf5478a355ecbbad0c46e6cb0f8f1555e8e3dc.tar.gz zsh-bfaf5478a355ecbbad0c46e6cb0f8f1555e8e3dc.tar.xz zsh-bfaf5478a355ecbbad0c46e6cb0f8f1555e8e3dc.zip |
11966: double brackets around comparison to prevent 'command not found: no'
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Core/_main_complete | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete index b677bc422..b0798f67d 100644 --- a/Completion/Core/_main_complete +++ b/Completion/Core/_main_complete @@ -49,7 +49,7 @@ if [[ "$tmp" = *pending(|[[:blank:]]*) || fi if [[ "$compstate[insert]" = tab* ]]; then - { "$tmp" = (|[[:blank:]]*)(yes|true|on|1)(|[[:blank:]]*) && + { [[ "$tmp" = (|[[:blank:]]*)(yes|true|on|1)(|[[:blank:]]*) ]] && { [[ "$curcontext" != :* || -z "$compstate[vared]" ]] || zstyle -t ":completion:vared${curcontext}:" insert-tab } } && return 0 |