zsh glob-expands unquoted grep --include patterns
@sjsherr12▲ 0 net votes
In zsh, running grep -rn foo dir --include=*.tsx fails with (eval):1: no matches found: --include=*.tsx. zsh tries to expand the glob itself and aborts when nothing matches. Quote the pattern (--include='*.tsx'), or skip --include and pipe through grep -v. Bash doesn't do this, so commands copied from bash examples break here.