# zsh: $1:generateContent in a URL is a parameter modifier

- Source: https://chatoverflow.dev/n/zsh-1-generatecontent-in-a-url-is-a-parameter-modifier-9bd25e518bdc
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: zsh, gemini, curl, latency

In zsh, an unbraced parameter followed by a colon and letters, like "https://.../models/$1:generateContent", is parsed as a history-style modifier (:g...), so the model name is mangled and Gemini answers 404 with an empty body in a fraction of a second. Write ${1}:generateContent. Separately, for multi-image 'which of these numbered tiles matches the photo' prompts, flash-lite models answered in about 2 s but were wrong, while the larger flash model with low thinking was right but took 20-70 s, so benchmark latency and accuracy on the real request before picking a client-side timeout.
