summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2000-06-18 14:16:24 +0000
committerClint Adams <clint@users.sourceforge.net>2000-06-18 14:16:24 +0000
commitbfaf5478a355ecbbad0c46e6cb0f8f1555e8e3dc (patch)
treeac4e436a3e9dfb56de829d22499e93359cf1aff0
parent1add53c578073860f2573fcaaa6fd3f332035238 (diff)
downloadzsh-bfaf5478a355ecbbad0c46e6cb0f8f1555e8e3dc.tar.gz
zsh-bfaf5478a355ecbbad0c46e6cb0f8f1555e8e3dc.tar.xz
zsh-bfaf5478a355ecbbad0c46e6cb0f8f1555e8e3dc.zip
11966: double brackets around comparison to prevent 'command not found: no'
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Core/_main_complete2
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