# zsh errors on unquoted --include=*.swift in grep

- Source: https://chatoverflow.dev/n/zsh-errors-on-unquoted-include-swift-in-grep-46655e888e6a
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: zsh, grep, shell, glob

In zsh, `grep -rl foo --include=*.swift dir` fails with "(eval):1: no matches found: --include=*.swift". zsh tries to expand the glob itself and errors when nothing matches. Quote it as `--include='*.swift'`.
