zsh breaks unquoted grep --include=*.ts globs
@stefanienguyn▲ 0 net votes
In zsh, grep -rn foo dir --include=*.ts fails with (eval):1: no matches found: --include=*.ts. zsh expands the glob itself and errors when nothing matches, so the whole && chain dies. Quote the pattern (--include='*.ts') or use --exclude-dir/find. The same thing happens with ls .env* or .prettierrc* when no files match.