From: Frank Terbeck Date: Thu, 20 Dec 2007 21:21:36 +0000 (+0100) Subject: zshrc: $reswords is an array *not* a hash... X-Git-Tag: 0.3.44~1 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=5532870e3ba9416a0c5699151e75555168bb7a33 zshrc: $reswords is an array *not* a hash... --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 7ca68cf..d7f98e3 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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