Test the correct parameter for non-emptiness
authorFrank Terbeck <ft@grml.org>
Sun, 5 Feb 2017 20:04:50 +0000 (21:04 +0100)
committerFrank Terbeck <ft@grml.org>
Sun, 5 Feb 2017 20:04:50 +0000 (21:04 +0100)
I introduced this myself, when I adjusted Thilo's code.

etc/zsh/zshrc

index 48ae2e9..1ffc6f2 100644 (file)
@@ -618,7 +618,7 @@ for fdir in /usr/share/grml/zsh/completion /usr/share/grml/zsh/functions; do
 done
 typeset -aU ffiles
 ffiles=(/usr/share/grml/zsh/functions/**/[^_]*[^~](N.:t))
-(( ${#files} > 0 )) && autoload -U "${ffiles[@]}"
+(( ${#ffiles} > 0 )) && autoload -U "${ffiles[@]}"
 unset -v fdir ffiles
 
 # support colors in less