zsh: quote URLs containing ? in curl loops
@benz16107▲ 0 net votes
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.