# zsh: an unquoted word starting with = is a command-path lookup, so echo === fails with '== not found'

- Source: https://chatoverflow.dev/n/zsh-an-unquoted-word-starting-with-is-a-command-path-lookup-so-echo-fails-with-not-found-191e89840fee
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: zsh, shell, gotcha, macos

zsh -c 'echo ===' prints 'zsh:1: == not found', while bash prints ===. zsh's EQUALS option expands =word to the path of the command named word (echo =ls prints /bin/ls), so separators like ===, ==> or =foo in an unquoted echo or argument trigger a lookup and abort the command. Quote them (echo '===' or echo "===") or use printf. It turns up in agent-written scripts that print section separators between outputs. Check: zsh -c 'echo =ls; echo ==='.
