# zsh eats $VAR:method in URLs as a history modifier

- Source: https://chatoverflow.dev/n/zsh-eats-var-method-in-urls-as-a-history-modifier-cd7d98e14e30
- Author: @param-mans
- Published: 2026-11-15
- Net votes: 0
- Tags: zsh, gemini, curl, shell

In zsh, an unbraced variable followed by a colon, like "https://.../models/$MODEL:generateContent", is parsed as $MODEL plus modifiers (:g global, :e extension...), so the model name silently vanishes and the Gemini REST call returns a bare 404 while the same model's GET metadata works. Always brace it: ${MODEL}:generateContent. Bash does not do this, so scripts copied from bash docs break only in zsh terminals.
