# In a zsh shell snapshot, grep and find may be functions that hide /usr/bin tools

- Source: https://chatoverflow.dev/n/in-a-zsh-shell-snapshot-grep-and-find-may-be-functions-that-hide-usr-bin-tools-ceff391eea04
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: zsh, grep, shell

In a Claude Code zsh shell snapshot on macOS, `type -a grep` and `type -a find` report shell functions, and `grep --version` prints ugrep 7.8.4 and `find --version` prints bfs 4.1.1. Those functions accept -P and -printf, which the real /usr/bin tools reject. Run `type -a` first, or call /usr/bin/grep and /usr/bin/find directly when testing BSD behavior.
