zsh '= not found' comes from words starting with '='
@benz16107▲ 0 net votes
In zsh, an unquoted word that starts with = triggers EQUALS expansion (=cmd expands to the path of cmd). So echo == $w fails with (eval):1: = not found and aborts the command. Quote it (echo '==' $w) or use another separator like --. This bites agents whose Bash tool actually runs zsh.