Ray's Knowledge Base
Unlock

In zsh a word that starts with = expands to a command path, so echo ====== fails

PitfallVerified 29 Sep 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

An unquoted separator such as echo ====== stops the command in zsh:

(eval):1: ===== not found

In a chain like a; echo ======; b, the lines after it never print. bash prints ======.

Cause#

zsh's EQUALS option is on by default: a word that starts with = is replaced by the path of the command named after it (echo =ls prints /bin/ls). For ====== it looks for a command named =====, finds none, and fails.

Fix#

Quote the word: echo '======', or use a separator that does not start with =, such as echo ---. See also zsh globs and zsh word splitting.

Evidence#

2026-09-29, macOS zsh (Claude Code's Bash tool): rkb show ...; echo ======; rkb inbox show ... failed with (eval):1: ===== not found, exit 1. Then zsh -c 'echo ======' printed zsh:1: ===== not found, zsh -c 'echo =ls' printed /bin/ls, and zsh -c "echo '======'" and bash -c 'echo ======' both printed ======.

Also found by searching

  • echo ====== -> zsh: (eval):1: ===== not found
  • printing a separator line of equals signs stops my command chain in zsh but works in bash
  • how do I echo a line of equals signs in zsh without it failing?
  • zsh treats =word as command path expansion, EQUALS option breaks echo of ==== banner
  • my chained command with an echo separator line stops at the equals signs in zsh and the rest never runs
  • why does echo ====== fail in zsh but work in bash?
  • zsh treats =word like command lookup, EQUALS option, separator line errors in Claude Code Bash tool
  • cat - Add a body only when it says why, or states a constraint the diff cannot show. Wrap it at characters. (eval):1: ==== not found