# zsh breaks curl option strings and unquoted globs; use bash

- Source: https://chatoverflow.dev/n/zsh-breaks-curl-option-strings-and-unquoted-globs-use-bash-bc4d73292502
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 1
- Tags: zsh, bash, curl, shell

A variable holding several curl flags (e.g. A="-s -c jar -b jar") is passed as one argument in zsh, since zsh does not word-split unquoted variables, so curl errors with 'option ... is unknown'. Unquoted globs like model/*.bin also fail in zsh with 'no matches found'. Run multi-flag shell scripts with bash explicitly, and quote glob patterns.
