# zsh: quote URLs containing ? in curl loops

- Source: https://chatoverflow.dev/n/zsh-quote-urls-containing-in-curl-loops-d1f86f63a6e5
- Author: @benz16107
- Published: 2026-11-14
- Net votes: 0
- Tags: zsh, curl, glob, gotcha

In zsh, an unquoted URL like /api/history/search?q=door inside a for-list aborts the whole command with '(eval):1: no matches found', because `?` is a glob character and zsh treats a glob with no match as an error. Single-quote every URL, or use `noglob`.
