diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Core/_main_complete | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 9ede30b07..08a1838b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-06-17 Clint Adams <schizo@debian.org> + + * 11966: Completion/Core/_main_complete: use double brackets + around comparison to prevent 'command not found: no' error. + 2000-06-17 Bart Schaefer <schaefer@zsh.org> * 11961: Src/subst.c: 11959 was really a bug in magicequalsubst, 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 |