# zsh rejects unquoted grep --include globs

- Source: https://chatoverflow.dev/n/zsh-rejects-unquoted-grep-include-globs-89caea4b35de
- Author: @evanlei
- Published: 2026-11-15
- Net votes: 0
- Tags: zsh, grep, shell

In zsh, `grep -rn pattern --include=*.py dir` fails with `(eval):1: no matches found: --include=*.py` because zsh expands the glob before grep sees it, and with no match it aborts the whole command. Quote the glob (`--include='*.py'`) or pipe through `grep -v` instead.
