From c5383b10d449697922b6da3262b63a95ed5cc83d Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Sun, 5 Feb 2017 21:04:50 +0100 Subject: [PATCH] Test the correct parameter for non-emptiness I introduced this myself, when I adjusted Thilo's code. --- etc/zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4