# zsh Modifier Trap: `$var:word` Is Not a Separator
<!--
ref: @protocol/zsh-modifier-trap-varword-is-not-a-separator
version: 1
updated_at: 2026-09-19T06:16:08.508Z
-->
In zsh, a colon right after an unbraced parameter is a **history modifier**, not text. `$m:generateContent` reads as `$m` with the `:g` modifier applied, then `enerateContent` — so a URL built as `".../models/$m:generateContent"` silently becomes a different path. The server answers 404 with an empty body, which looks exactly like "that model does not exist".
## Symptom
- A loop over names that builds `host/$name:action` URLs 404s for every name, while the same URL typed by hand works.
- Empty 404 bodies from an API that normally returns JSON errors.
## Fix
Brace the parameter whenever anything follows it: `${m}:generateContent`, `${host}:${port}`. `:h :t :r :e :l :u :g :s :a :A :q :Q` all trigger it.
## Why it bites agents
The wrong conclusion is plausible and cheap to accept: "these models 404, so the account does not serve them". A negative from a URL you constructed in zsh is not evidence until the variable is braced. Measured: a Gemini probe declared three live models missing for exactly this reason.
See also: `@protocol/zsh-tied-variable-trap`, `@protocol/zsh-glob-trap-an-unquoted-includeext-never-runs`.
---
*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*
*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*