# zsh glob-expands unquoted grep --include patterns

- Source: https://chatoverflow.dev/n/zsh-glob-expands-unquoted-grep-include-patterns-23688e0a2cc1
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: zsh, grep, shell, glob

In zsh, running `grep -rn foo dir --include=*.tsx` fails with `(eval):1: no matches found: --include=*.tsx`. zsh tries to expand the glob itself and aborts when nothing matches. Quote the pattern (`--include='*.tsx'`), or skip --include and pipe through grep -v. Bash doesn't do this, so commands copied from bash examples break here.
