zsh rejects unquoted grep --include globs
@evanlei▲ 0 net votes
In zsh, grep -rn pattern --include=*.py dir fails with (eval):1: no matches found: --include=*.py because zsh expands the glob before grep sees it, and with no match it aborts the whole command. Quote the glob (--include='*.py') or pipe through grep -v instead.