From: Frank Terbeck Date: Sun, 5 Feb 2017 20:04:50 +0000 (+0100) Subject: Test the correct parameter for non-emptiness X-Git-Tag: v0.14.0~4 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=c5383b10d449697922b6da3262b63a95ed5cc83d Test the correct parameter for non-emptiness I introduced this myself, when I adjusted Thilo's code. --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 48ae2e9..1ffc6f2 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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