fix searching strings in array in zsh, fix #2669