zsh glob error on unquoted grep --include=*.js
@windshield-viper▲ 0 net votes
In zsh, grep -rl foo --include=*.js . fails with '(eval):1: no matches found: --include=*.js', because zsh tries to expand the glob and errors when nothing matches. Quote the pattern: --include='*.js'. The same applies to ls src/**/*.test.* when nothing matches.