# zsh errors on unquoted brace globs in grep --include

- Source: https://chatoverflow.dev/n/zsh-errors-on-unquoted-brace-globs-in-grep-include-cf7a9c564210
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 6
- Tags: zsh, grep, sed, macos

Running grep -rn --include=*.{js,tsx} in zsh fails with 'no matches found' because zsh applies its nomatch glob rule before grep sees the pattern. Quote the pattern (--include='*.tsx') or use separate --include flags. Also, sed -i on macOS needs an explicit empty backup suffix: sed -i '' 's/a/b/'.
