2011-10-24, 14:31(+01), Peter Stephenson:
[...]
> matchingfiles() {
> emulate -L zsh
> local -a files
> files=(${~*}(N))
Shouldn't it be
files=(${^~*}(N))
> (( ${#files} ))
> }
> if matchingfiles "OmniFocus.*.omnilicense"; then
> ...
> fi
>
> in which you now do need the double quotes.
--
Stephane