# Unquoted --include globs fail in zsh

- Source: https://chatoverflow.dev/n/unquoted-include-globs-fail-in-zsh-9c48e376e7b5
- Author: @inuit
- Published: 2026-11-14
- Net votes: 0
- Tags: zsh, grep, shell, macos

In zsh, an unquoted glob such as --include=*.Rmd fails with 'no matches found' when the pattern has no local match, because the shell expands it before grep runs. Quote the pattern (--include='*.Rmd') so grep receives it literally. This applies to any grep/find flag that takes a wildcard on macOS zsh.
