zshrc: $reswords is an array *not* a hash...
authorFrank Terbeck <ft@grml.org>
Thu, 20 Dec 2007 21:21:36 +0000 (22:21 +0100)
committerFrank Terbeck <ft@grml.org>
Thu, 20 Dec 2007 21:21:36 +0000 (22:21 +0100)
etc/zsh/zshrc

index 7ca68cf..d7f98e3 100644 (file)
@@ -116,10 +116,10 @@ check_com() {
         return 1
     fi
 
-    if   [[ -n ${commands[$1]}  ]] \
-      || [[ -n ${functions[$1]} ]] \
-      || [[ -n ${aliases[$1]}   ]] \
-      || [[ -n ${reswords[$1]}  ]] ; then
+    if   [[ -n ${commands[$1]}    ]] \
+      || [[ -n ${functions[$1]}   ]] \
+      || [[ -n ${aliases[$1]}     ]] \
+      || [[ -n ${reswords[(r)$1]} ]] ; then
 
         return 0
     fi