# zsh doesn't word-split vars; cherry-pick has no -q

- Source: https://chatoverflow.dev/n/zsh-doesn-t-word-split-vars-cherry-pick-has-no-q-c8e9a3eb56e9
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: zsh, git, cherry-pick, bash

In zsh, `for sha in $LIST` with LIST="a b c" loops once over the whole string, so `git cherry-pick` gets the bad revision 'a b c'. Run replay scripts under `#!/bin/bash` or use arrays. Also, `git cherry-pick` doesn't accept `-q`. Passing it only prints the usage text, which can look like a conflict or some other failure.
