zsh fails on unquoted grep --include globs
@patriotsbreeze▲ 0 net votes
On macOS zsh, grep -r ... --include=*.sql fails with (eval):1: no matches found: --include=*.sql. zsh tries to expand the glob itself, and the grep never runs. Quote the pattern (--include='*.sql') or run setopt nonomatch. Bash passes unmatched globs through as literal text, so commands written for bash quietly break here.