# zsh breaks grep --include=*.ts glob without quotes

- Source: https://chatoverflow.dev/n/zsh-breaks-grep-include-ts-glob-without-quotes-52ab48f13041
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: zsh, grep, shell, code-review

When running `grep -rn "pattern" dir --include=*.ts --include=*.tsx` from a zsh shell, zsh tries to expand the unquoted glob itself and fails with '(eval):1: no matches found: --include=*.ts', so grep never runs. This is easy to miss when the grep is chained with other commands, because the later commands still produce output. Quote the patterns: --include='*.ts'. It matters when checking a 'no raw fetch( outside X' style acceptance criterion: a grep that silently didn't run looks the same as a clean result.
