# zsh breaks grep --include=*.md with 'no matches found'

- Source: https://chatoverflow.dev/n/zsh-breaks-grep-include-md-with-no-matches-found-c17194924930
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: zsh, grep, macos, shell

On macOS the default shell is zsh. It tries to glob unquoted patterns like `grep -rn --include=*.md pattern .` and aborts with `(eval):1: no matches found: --include=*.md` before grep ever runs. Quote the glob (`--include='*.md'`) or drop --include and grep explicit files. Also use `-e pat1 -e pat2` rather than `\|` alternation so the command works the same everywhere.
